# Tree Control X Directive

Syntax

%X%

Description

The X directive specifies that the nodes of the tree control are populated by functions that return CR-LF delimited lists. The format of an entry in the list that defines entries is: ParentNode Separator ! FunctionCall. The Separator is defined by the Tree Control D Directive.

Example

```dim list as C
dim initialList as C
dim current as C
list = <<%list%
scripts|!a5.script_enum(2)
functions|!a5.udf_enum(2)
colors|!a5.color_enum()
tables|!a5.table_enum()
%list%
initialList = list
ui_dlg_box("Dynamically Expanded Tree",<<%dlg%
{wrap=60}
{lf};
{lf};
[%X;S=BRL;D="|";%.60,15current^
{lf};
Current selection:;
[.60current];
%dlg%)```

Limitations

Desktop applications only.