Display message in the message line, and halt program execution until a key is pressed
MESSAGE <expC> [QUERY]
The MESSAGE command displays the specified character string on line 24, and waits for any key to be pressed before continuing. If SET STATUS is OFF then the message will not be displayed, but rather the bell will sound on the terminal. Whenever the message is displayed, the current cursor position is saved, and then restored after a key has been pressed. The message is automatically erased from line 24 after a key has been pressed. To change the MESSAGE line from line 24, set MESSAGE ON, STATUS OFF and SCOREBOARD OFF. Then use the SET MESSAGE AT and SET MESSAGE TO commands to reposition the message line.
If the QUERY keyword is specified, then the message is displayed in a YES/NO dialog box. The response made at the keyboard can be trapped using the LASTKEY() function.
seek "BALLET" if not found() message "Record not found. Continue?" query if lastkey()=asc("N") quit endif endif