Set Collection - Insert Method

Insert adds an item to a collection

Member of Set Collection (PRIM_SCOL)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)PRIM_OBJTReference to the insert object
Item*InputPRIM_OBJTInstance to be stored in the collection

Details

Insert adds an item to a collection.
 
The item will be added at the end.

Example

Inserting an existing reference into a collection.
#Collection.Insert(#Object)
Inserting a new button instance into a collection.
#Collection.Insert((*New #Prim_phbn))

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020