Xbasic

UI_GET_TABLE Function

Syntax

C ui_get_table(C title[,C type [,C default [,L more [,L listbox [,L absolute_path ]]]]])

Arguments

title

The title of the dialog box.

type

Optional. What type of table to display in the list. Default = "Both"

"Table"
"Set"
"Both"
default

Optional. Default = no selection. The default table or set.

more

Optional. Default = .F.

.T. = displays at the top of the list
.F. = does not display
listbox

Optional. Default = .T.

.T. = display as Listbox
.F. = display as Drop down list box
absolute_path

Optional. Default = .F.

.T. = return absolute path, filename, and file extension.
.F. = return only table or set

Description

Prompt for table and/or set. Display choices from current database. Type is "table","set" or "both".

Discussion

The UI_GET_TABLE() function prompts for table and/or set. Displays choices from current database.

Example

dim a as C
a = ui_get_table("Tables", "Table", "Customer", .t., .t., .t.)
? a ? "c:\databases\expressions test\customer.dbf"

Limitations

Desktop applications only.

See Also