Xbasic
{CONDITION_ELSE}
Syntax
{CONDITION_ELSE = Logical_Expression }
Arguments
- Logical_Expression
An expression that evaluates to TRUE (.T.) or FALSE (.F.).
Description
For adding additional cases to make portions of an Xdialog visible.
Discussion
The {condition_else} directive can be used to create conditional sections that render in the same location in an Xdialog.
For example:
ui_dlg_box("Conditional Sections",<<%dlg%
{removeleadingspaces}
{removecomments}
{region}
Condition: [condition^=conditions];
{condition_begin=condition="condition1"}
{region}
This is condition 1;
{endregion}
{condition_else=condition="condition2"}
{region}
This is condition 2;
{endregion}
{condition_else=condition="condition3"}
{region}
This is condition 3;
{endregion}
{condition_else}
{region}
Thiis is any other condition;
{endregion};
{condition_end};
{endregion};
{line=1,0};
{justify=right}<Close>
%dlg%)The images below show how the Xidialog renders for various conditions.
Note that when 'condition4' is selected, the {condition_else} text is show because there is no handler for this condition.
Limitations
Desktop Applications Only
See Also


