COLLECTION
PLBCMP GUI Only
The COLLECTION instruction groups objects into a set. Once a COLLECTION is defined, a single instruction then be affects all the items in the set. To define a COLLECTION, use one of the following statement formats:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where:
label
Optional. A Data Label.
%
Optional. Denotes the item as being GLOBAL.
arraysize
Required. An integer decimal constant, CONST variable, or EQUATEd value indicating the number of array items.
^
Optional. Denotes the item as being a POINTER.
target
Required. The name of a previously defined data item of the same type.
Flags Affected: NONE
Note the following:
A COLLECTION is automatically created when a LISTINS instruction inserts the first object into the collection. Additional objects are then inserted using subsequent LISTINS instructions and removed using the LISTDEL instruction.
COLLECTIONS may contain 4001 objects.
COLLECTIONS may not contain an IMAGELIST, STATUSPANEL, TOOLBUTTON, or MENUITEM object.
A PLFORM variable is a COLLECTION that is automatically created and initialized using a FORMLOAD instruction. If any information had previously been placed in a PLFORM using the LISTINS instruction, it is lost.
Multi-dimension arrays are supported up to a maximum of fourteen dimensions.
If an operation (i.e., SETPROP) is executed against a COLLECTION and it contains objects that do not support that operation, the operation is simply ignored for that object.
To improve the display speed when displaying a number of objects, add each object to a COLLECTION and perform an ACTIVATE on the COLLECTION.
The ^ denotes a Pointer Variable.
Although a COLLECTION may be defined as Global, it is DESTROYed during a CHAIN instruction.
See Also: Example Code, Object Definitions, Object Output Instructions
![]() |