Ask


 

Ask>prompt,result_variable

 

Displays a Yes, No dialog box with the specified prompt.  If the user presses 'Yes', result_variable is set to 'YES', else result_variable becomes 'NO'.

 

The result is returned in upper case.

 

prompt can be a variable containing the prompt to display.

 

It is possible to set a timeout by setting the value of ASK_TIMEOUT before issuing the Ask command.  ASK_TIMEOUT takes a number of milliseconds.  If the Ask box is still active after the timeout has elapsed it will be closed and the result set to YES.

 

See also: Input, Message, MessageModal

 

Example

 

Ask>Do you want to continue ?,continue