Enabled Syntax

Syntax

? Enabled

Argument

Type

Description

Enabled

C

The name of a logical variable or an expression that evaluates to .T. (TRUE) or .F. (FALSE).

Description

The event syntax gives the programmer the opportunity to write Xbasic code in the %code% section of the Xdialog that analyzes the value of the a_dlg_button variable and responds accordingly.

Example

For example, in the following script the list box is enabled. [Picture]

dim on_off as L

on_off = .T.

mode = 1

choices = <<%dlg%

Shared

Read only

Exclusive

%dlg%

result=ui_dlg_box("Title",<<%dlg%

Filename:| [.32filename];

Open as:;

Mode:| [.10,5mode^#choices?on_off];

<OK>

%dlg% )

Changing the value of on_off disables the list box. [Picture]

dim on_off as L

on_off = .F.

mode = 1

choices = <<%dlg%

Shared

Read only

Exclusive

%dlg%

result=ui_dlg_box("Title",<<%dlg%

Filename:| [.32filename];

Open as:;

Mode:| [.10,5mode^#choices?on_off];

<OK>

%dlg% )

See Also

Xdialog Language Directives and Operators, Xdialog Control Reference

Supported By

Alpha Five Version 5 and Above