Command WAIT Foundation
Waits for a keystroke or until a character appears in the keyboard buffer.
WAIT [<SayExpression>] [TO <VarName>]
The command WAIT allows input of a single character via the keyboard and assigns the character to a variable. It is a simple input routine which first outputs the control characters Carriage-Return Line-Feed (Chr(13)+Chr(10)) so that the cursor appears at the beginning of the next screen row. <SayExpression> is then displayed and the command waits for a keypress or reads the next character from the keyboard buffer.
WAIT is a command which exists only for compatibility reasons. Instead of WAIT, a pause condition using Inkey(0) should be created. The key pressed can then be retrieved using LastKey(). The command @...SAY can be used for output of the message.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.