| |
|
| Format |
WAIT
seconds
Where:
| seconds |
Value
determines the number of seconds to wait. Numeric
expression. |
|
| |
|
| Description |
Use the WAIT
directive to have the system suspend execution
for the number of seconds you indicate in the numeric
expression. During the time the program is suspended, the
SETESC directive is deferred. This
directive will only be processed once the WAIT
interval has elapsed. |
|
|
| *Note* |
The accuracy
of the timing varies from operating system to operating
system. In MS-DOS, the WAIT is accurate
to within 1/19th of a second. On UNIX/Linux systems, the WAIT
is accurate to within one second by default. On
Unix/Linux where a finer resolution time is supported,
you can set the '+M' System parameter which will cause the OS support
waiting in fractions of a second. |
|
|
| |
|
| Example |
0110 READ
(1,ERR=1000,KEY=K$)N$
1000 REM Test for busy record
1010 IF ERR=0 THEN PRINT
@(0,22),"Busy. will retry";
1010: WAIT 5; RETRY |
|
|
| *Note* |
WAIT
0 is often used to flush the display cache;
e.g.,
PRINT
IMAGE("Bar"),FILL(1,4),PEN(1,1,4),IMAGE(""),
WAIT 0
|
|
|