Array Collection - InsertBefore Method

InsertBefore adds an item to a collection before a specified item

Member of Array Collection (PRIM_ACOL)

Parameters

NameTypeData TypeDescription
Item*InputPRIM_OBJTInstance to be stored in the collection
Index*InputIntegerIndex parameter

Details

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.

Example

Inserting an existing reference into a collection. The item will be the fourth in the collection.
#Collection.InsertBefore(#Object 4)

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2