Keyed Collection - Collects Property

The class of object to be collected

Member of Keyed Collection (PRIM_KCOL)

Data Type - PRIM_OBJT - Base object, use it as the ancestor of components which are not visualized


Collects specifies the class of components that can be stored in the collection.
Collections can store any object that has this class in its inheritance structure.


The example below defines a collection of buttons keyed by a field #ID.
Define_Com Class(#prim_kcol<#Prim_phbn #ID>) Name(#Buttons)
Collection items can be accessed using the key as below.
#Buttons<123>.Caption := "Caption 1"
#Buttons<#ID>.Caption := "Caption 1"

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2