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…') |
Barrymavin (Talk | contribs) (→EVENTS) |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
− | Suspend program execution pending a key press or mouse-click | + | Suspend program execution pending a key press or mouse-click or CLEAR EVENTS command. |
==Syntax== | ==Syntax== | ||
Line 6: | Line 6: | ||
[CLEAR] | [CLEAR] | ||
+ | |||
+ | [NOCLEAR} | ||
[NOWAIT] | [NOWAIT] | ||
Line 14: | Line 16: | ||
[WINDOW] | [WINDOW] | ||
+ | |||
+ | [EVENTS] | ||
==See Also== | ==See Also== | ||
− | [[ | + | [[INPUTEVENTS()]], [[Lianja|Lianja System Object]], [[MESSAGEBOX()]] |
==Description== | ==Description== | ||
Line 23: | Line 27: | ||
====CLEAR==== | ====CLEAR==== | ||
The CLEAR keyword will remove a system window or window message when the WAIT command is called from a program. | The CLEAR keyword will remove a system window or window message when the WAIT command is called from a program. | ||
+ | |||
+ | ====NOCLEAR==== | ||
+ | The NOCLEAR keyword is included for syntax compatibility only. | ||
====NOWAIT==== | ====NOWAIT==== | ||
Line 35: | Line 42: | ||
====WINDOW==== | ====WINDOW==== | ||
The WINDOW keyword will cause the message to be displayed in the system message window. | The WINDOW keyword will cause the message to be displayed in the system message window. | ||
+ | |||
+ | ====EVENTS==== | ||
+ | WAIT EVENTS suspends execution until a CLEAR EVENTS command is executed from an asynchronous delegate such as a websocket. | ||
==Example== | ==Example== |
Latest revision as of 04:34, 17 October 2021
Contents
Purpose
Suspend program execution pending a key press or mouse-click or CLEAR EVENTS command.
Syntax
WAIT [<expC>]
[CLEAR]
[NOCLEAR}
[NOWAIT]
[TO <memvar>]
[TIMEOUT <expN>]
[WINDOW]
[EVENTS]
See Also
INPUTEVENTS(), Lianja System Object, MESSAGEBOX()
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.
NOCLEAR
The NOCLEAR keyword is included for syntax compatibility only.
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.
EVENTS
WAIT EVENTS suspends execution until a CLEAR EVENTS command is executed from an asynchronous delegate such as a websocket.
Example
wait "Click to continue"