List Collection - InsertBefore Method
InsertBefore adds an item to a collection before a specified item
Member of List Collection (PRIM_LCOL)
| Name | Type | Data Type | Description |
|---|---|---|---|
| Item | *Input | PRIM_OBJT | Instance to be stored in the collection |
| Index | *Input | Integer | Index parameter |
InsertBefore adds an item to a collection before the specified position. Specifying an index that does not exist will result in a run time error.
Inserting an existing reference into a collection. The item will be the fourth in the collection.
#Collection.InsertBefore(#Object 4)
LANSA Version 15, April 2020