ENABLEITEM
7.8.5, PLBCMP GUI Only
The ENABLEITEM instruction allows an object to generate events. This instruction reverses the effect of a DISABLEITEM instruction. The instruction uses the following format:
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. A previously defined and created object or pointer to an object that is enabled.
item
Optional. A Numeric Variable, numeric literal, or Expression that indicates the item within the object that is enabled.
Flags Affected: NONE
Note the following:
If {item} is not specified, the default item number of zero is used.
The entire object is enabled if an item number of zero is used and the object is not a DIALOG object.
Only COMBOBOX, DIALOG, FLOATMENU, MENU, POPUPMENU, and SUBMENU objects may have individual items enabled.
No action occurs if the item number is not valid or the item is already enabled.
An object must be CREATEd before using ENABLEITEM. If this is not done, a runtime error of O105 is generated.
If insufficient memory is available to perform the operation, a runtime error of O106 is generated.
See Also: Example Code, DISABLEITEM, Object Instructions
![]() |