.Enabled Dotfield
- Last UpdatedJul 25, 2024
- 1 minute read
Determines whether the control object can respond to user-generated events.
Category
windows control
Usage
[ErrorNumber=] GetPropertyD("ControlName.Enabled",
Tagname);
[ErrorNumber=] SetPropertyD("ControlName.Enabled",
Discrete);
Parameters
ControlName
Name of the windows control. For example, ChkBox_4.
Tagname
A discrete tagname that holds the property requested.
Discrete
A discrete value or a discrete tagname that holds the value to be written when the function is processed. For a discrete value:
0 = Control is disabled.
1 = Control is enabled.
Remarks
This property is read/write during both development and run time.
Data Type
Discrete (read/write)
Applies To
Text boxes, list boxes, combo boxes, checkboxes and radio buttons.
Example(s)
The following statement disables the list box object named "ListBox_1".
SetPropertyD("ListBox_1.Enabled", 0);
See Also
GetPropertyD(), SetPropertyD()