Record List - Combo Box Control Syntax

Syntax

[%K=Index_Query_Name%[.Width[,Height]]Variable_Name[!rl_*][?Enabled]]

[%@FormatVariable%[.Width[,Height]]Variable_Name[!rl_*][?Enabled]]

Note: You must not have any space characters in the finished command.

Argument

Type

Description

Index_Query_Name

C

The name of the index or query (query.description).
FormatVariable

C

When combined with "@" allows the control to read its formatting instructions from the variable named FormatVariable.
Width

N

The width of the control.
Height

N

The height of the control.
Variable_Name

C

The name of a character variable to receive the user selection, or a numeric variable to receive the index value of the selected radio button. The index of the top-most button is 1.
rl_*

C

Optional. See Event Syntax.
Enabled

L

Optional. See Enabled Syntax.

Description

The Record List - Combo Box Control provides a dynamic view of selected records and fields from a table or set.

Example

For example, the following script creates a combo box based on the query named "Keylist" (query.description): [Picture]

tbl = table.reset("clients")

tbl.query_detach_all()

query.order = "lastname+firstname"

query.filter = ".t."

query.description = "Keylist"

indx = tbl.query_create()

ui_dlg_box("Record List",<<%dlg%

Print a mailing label for which customer?;

{lf};

Select customer lastname:;

[%K=keylist%.50key_selected];

{lf};

<*15&Preview!ok> <15&Cancel!cancel>

%dlg%,<<%code%

if a_dlg_button = "ok" then

filter_expression = "lastname+firstname = '"+key_selected+"'"

label.Preview("mail_labels",filter_expression)

end if

%code%)

See Also

Macro Expansion Symbol, Xdialog Language Directives and Operators, Xdialog Control Reference

Supported By

Alpha Five Version 5 and Above