WAIT
Format: WAIT (expr)
Supported by: COMX BASIC V1.00, Floating Point BASIC 2.2, Pecom 32 BASIC, Pecom 64 BASIC 1.0 and 4.0, Quest Super BASIC 1.4, 3.0, 5.0 and 6.0, RCA BASIC3 V1.1, Telmac SBASIC v 24.3
Similar commands: -
This statement provides a way to insert a delay in the execution of a program. The length of the delay is directly proportional to the value of the expression. 1 equals roughly 4 to 8 milliseconds depending on the computer and CPU speed. An example of one application of the WAIT statement is as follows:
10 INPUT A$(1) 20 PR "MESSAGE IS"; A$(1) 30 WAIT (500): CLS: GOTO 10
This routine allows the message to be viewed for some period of time before the screen is cleared and execution continued.