Keyed Collection - CreateAccessor Method

CreateAccessor creates an accessor component that provides read-only access to the collection

Member of Keyed Collection (PRIM_KCOL)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)PRIM_KCACReference to the new accessor instance

Details

The CreateAccessor method creates an accessor component that provides read only access to the collection.
 
The recommended method of establishing read only access to a collection is to expose the collection as a property.
 
This feature is provide for completeness and is unlikely to be required for most development purposes.

Example

In this example, a collection is defined and made available as a property of its container
Define_Com Class(#prim_kcol<#prim_objt #prim_objt>) Name(#Objects)
 
Define_Pty Name(Objects) Get(*Collection #Objects)

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2