List Collection - Concatenate Method

Combine two collections to create a new collection

Member of List Collection (PRIM_LCOL)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)PRIM_LCOLReference to a collection containing all items
OtherList*InputPRIM_LCOLReference to another list collection to be joined to this collection

Details

The Concatenate method creates a new collection by combining the items in two collections: the collection against which you are executing the method and the collection that was supplied in the OtherList parameter.
 
All 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(#Buttons)
Define_Com Class(#Prim_lcol<#Prim_Ctrl>) Name(#Panels)
Define_Com Class(#Prim_lcol<#Prim_Ctrl>) Name(#Controls) Reference(*Dynamic)
 
#Controls <= #Buttons.Concatenate( #Panels )

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2