ENABLE (re-activate dimmed control)

Top  Previous  Next

 

ENABLE( [ first control ] [, last control ] )

ENABLE

Reactivates disabled controls.

first control

Field number or field equate label of a control, or the first control in a range of controls. If omitted, defaults to zero (0).

last control

Field number or field equate label of the last control in a range of controls.

The ENABLE statement reactivates a control, or range of controls, that were dimmed by the DISABLE statement, or were declared with the DISABLE attribute. Once reactivated, the control is again available to the operator for selection. If the first control and last control parameters are omitted, ENABLE reactivates all controls on the window.

Example:

CODE

OPEN(Screen)

DISABLE(?Control2)         !Control2 is deactivated

IF Ctl:Password = 'Supervisor'

ENABLE(?Control2)         !Re-activate Control2

END

 

See Also:

DISABLE

HIDE

UNHIDE