Enabled

Description

Determines whether a control in a DataWindow is enabled.

Applies to

Button, InkPicture controls

Syntax

Describe and Modify argument:

"buttonname.Enabled { = ' value ' }"

Parameter

Description

buttonname

The name of the button that you want to enable or disable.

value

Whether the button is enabled.

Values are:

  • Yes – (Default) The button is enabled.

  • No – The button is disabled.

Usage


In the painter

Select the control and set the value in the Properties window, Behavior category.

When the Enabled check box is cleared, or the Enabled property is otherwise set to false, the button control is grayed and its actions are not performed.

Examples

Example 1

setting = dw1.Describe("b_name.Enabled")

dw1.Modify("b_name.Enabled ='No'")