HTBasic Help
×
Menu
Index

WAIT

Waits a specified time or for TRANSFER events.
 
 WAIT seconds
WAIT FOR {EOR|EOT} @io-path
 
 
 
Usage:
WAIT Sec/7
WAIT FOR EOR @Device WAIT FOR EOT @Non-buffer
Example: WAIT.BAS
Description:
If seconds are specified, the computer pauses execution for the length of time specified. The seconds argument must be in the range 0 to 2,147,483.648 seconds. The number is rounded to the nearest millisecond, or to the resolution of the computer clock.
The WAIT FOR EOR statement waits until an end-of-record event occurs during a TRANSFER. Similarly, the WAIT FOR EOT statement waits until any TRANSFER active on the I/O path is complete. The I/O path must be the I/O path used in the TRANSFER to specify the device. Using the I/O path assigned to the buffer will cause an error. If the I/O path is not involved in an active TRANSFER, the statement has no effect.
See Also: