Sorted Dictionary Collection - Insert Method

Insert adds an item to a collection

Member of Sorted Dictionary Collection (PRIM_SDCO)

Parameters

Name

Type

Data Type

Description

Result

*Result(Optional)

PRIM_OBJT

Reference to the inserted object

Item

*Input

PRIM_OBJT

Instance to be stored in the collection

Key

*Input

PRIM_OBJT

Key used to access the collection item

Details

Insert adds an item to a collection.

Example

Inserting an existing reference into a collection specifying the key to be used to access it.

     #Collection.Insert(#Object #Object2)

Inserting a new button instance into a collection specifying the key to be used to access it.

     #Collection.Insert((*New #Prim_phbn) #Object)


See also

All Component Classes

Technical Reference