Xbasic
UI_GET_EXPRESSION Function
Syntax
Expression as C = ui_get_expression([C title [,C prompt [,C default [,C type [,C table_set_name ]]]]])
Arguments
- Expression
The expression returned by the function.
- title
Optional. The title of the dialog box.
- prompt
Optional. A prompt adjacent to the text entry box.
- default
Optional. A default value for the expression.
- type
Optional. The type of the variable that expression should return.
- table_set_name
Optional. The table or set whose fields will provide values for the Expression Builder.
Description
Prompts for an expression. If table_set_name is not specified, current table/set is used. Table_set_name can be a crlf delimited list of tables.
Discussion
The UI_GET_EXPRESSION() function displays the get expression smart field, which contains a link to the Expression Builder.
Example
dim prmpt_title as C dim prmpt_prompt as C dim prmpt_default as C dim shared abc as N prmpt_title = "Prompt for an Expression" prmpt_prompt = "" prmpt_default = "0" prmpt_tables = "" abc = ui_get_expression(prmpt_title, prmpt_prompt, prmpt_default, "Numeric")
Limitations
Desktop applications only.
See Also