List Collection - InsertAfter Method
InsertAfter adds an item to a collection after a specified position
Member of List Collection (PRIM_LCOL)
Parameters
Name | Type | Data Type | Description |
|---|---|---|---|
Item | *Input | Instance to be stored in the collection | |
Index | *Input | Integer | Position after which to add the item |
Details
InsertAfter adds an item to a collection after the specified position.
Specifying an index that does not exist will result in a run time error.
Example
Inserting an existing reference into a collection. The item will be the fourth in the collection.
#Collection.InsertAfter(#Object 3)