Xbasic

UI_GET_FIELDNAME Function

Syntax

OutputString as C = ui_get_fieldname([C table_set_name [,C default_fieldname [,C title [,C style [,N width [,C field_types ]]]]]])

Arguments

table_set_name

The name of the table or set that contains the field. If the table or is set not specified, the current table or set is used.

default_fieldname

Optional. The default field selection.

title

Optional. The title of the dialog box.

style

Optional. Default = "". Any non-null value displays a drop-down listbox.

width

Optional. The character width of the dialog box.

field_types

Optional. A comma delimited list of field data types.

Description

Prompts for a fieldname in the specified table or set. If table/set not specified, current table/set is used.

Discussion

The UI_GET_FIELDNAME() function prompts for a field name from either the current table/set of a specified table or set. The UI_GET_FIELDNAME() can be wrapped in an Xdialog to produce a field selection tool.

Example

? ui_get_fieldname("customer", "lastname", "Select field", "dropdown", 100)
= "Phone"

Limitations

Desktop applications only.

See Also