List Collection - Append Method

Add the components in the supplied collection to the end

Member of List Collection (PRIM_LCOL)

Parameters

NameTypeData TypeDescription
OtherList*InputPRIM_LCOLReference to another list collection to add

Details

The Append method is used to add the contents of another collection to the end of the collection.
 
Both collections must be defined to collect the same object type.

Example

In this example, both collections collect controls
Define_Com Class(#Prim_lcol<#Prim_Ctrl>) Name(#Controls)
Define_Com Class(#Prim_lcol<#Prim_Ctrl>) Name(#Panels)
 
#Controls.Append( #Panels )
In this example, one collection collects controls while the other collects panels. Append will return an error in the source.
Define_Com Class(#Prim_lcol<#Prim_Ctrl>) Name(#Controls)
Define_Com Class(#Prim_lcol<#Prim_Panl>) Name(#Panels)
 
#Controls.Append( #Panels )

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2