Set Collection - Insert Method
Insert adds an item to a collection
Member of Set Collection (PRIM_SCOL)

Parameters

Name

Type

Data Type

Description

Result

*Result (Optional)

PRIM_OBJT

Reference to the insert object

Item

*Input

PRIM_OBJT

Instance 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