Difference between revisions of "WAIT"
(Created page with '==Purpose== Suspend program execution pending a key press or mouse-click ==Syntax== WAIT [<expC>] [CLEAR] [NOWAIT] [TO <memvar>] [TIMEOUT <expN>] [WINDOW] ==See Also== [[D…') |
|||
Line 16: | Line 16: | ||
==See Also== | ==See Also== | ||
− | + | [[MESSAGEBOX()]] | |
==Description== | ==Description== |
Revision as of 09:32, 3 October 2012
Contents
Purpose
Suspend program execution pending a key press or mouse-click
Syntax
WAIT [<expC>]
[CLEAR]
[NOWAIT]
[TO <memvar>]
[TIMEOUT <expN>]
[WINDOW]
See Also
Description
The WAIT command displays the specified prompt <expC> on the screen and suspends program execution until a key is pressed or mouse is clicked. If no <expC> is specified, then "Click Ok to continue" is displayed. The key that is read from the keyboard is not echoed.
CLEAR
The CLEAR keyword will remove a system window or window message when the WAIT command is called from a program.
NOWAIT
The NOWAIT keyword will display the message but not require user input to continue execution.
TIMEOUT <expN>
The TIMEOUT clause lets you specify the number of seconds, <expN>, the message will remain on the screen before the program execution continues.
TO <memvar>
Syntax only.
WINDOW
The WINDOW keyword will cause the message to be displayed in the system message window.
Example
wait "Click to continue"