Command: ask

Syntax

ask <message>,<ident> {,<ident> ... }

Description

Prompt the operator for the value of one or more identifiers.

Parameters

Switches

Notes

Where possible the prompt will be shown via a pop-up menu. The menu will remain on display until the operator gives a syntactically valid answer. The menu contains an OK and a Cancel button.

A ? will be automatically added to the prompt, or [<values>] ? if the -d and -pd switches are present.

When giving multiple value answers, values for identifiers can be separated by a comma or white space, but must be on the one input line.

The system identifier found is set by this command; to 1 when a proper answer is keyed or the OK button pressed, to 0 otherwise.

Examples

Declare a numeric and get its value from the operator.

numeric x; ask 'Give X',x

Declare a string and get its value from the operator. The menu position is given and a default answer. The prompt is: "Your Address [nowhere] ?". The answer, including spaces, is read as a single string.

string addr
ask 'Your Address',addr,-d=’nowhere’,-pd,-l,-pos=<20,20>

Get the password from the operator.

string pwd
ask 'Give the password',pwd,-sec

See Also

Commands:

interrupt, ifno, ifyes

Identifiers:

found (numeric), menu_position (numeric)