Setaccessorenabled

This built-in property defines whether the set accessors are enabled on an instance.

By default, this property is 0 (false), immediately after a call to NewInstance. You must set it to 1 (true) to activate the set accessors.

This property is reserved for supervisor generated codes.

Syntax

MY_INSTANCE.setaccessorEnabled

Example

# Instantiate a customerLocal Instance MYCUSTOMER Using C_CUSTOMERMYCUSTOMER=Newinstance C_CUSTOMER AllocGroup Null# Read the customer: no controls are done because the set accessors (control, propagate) are not enabled yetRETCODE=Fmet MYCUSTOMER.AREAD("JOHNDOE")# Enable set accessorsMYCUSTOMER.setAccessorEnabled=1# This assignment will trigger the control and propagate methods if they existMYCUSTOMER.PAYTERM="CHQ"

See also

getAccessorEnabled