WAIT
Suspend Operation for Specified Time
This directive suspends program execution for a specified period of time.
Syntax
Section titled “Syntax”WAIT #-of-seconds- #-of-seconds
- is an integer in the range of 0 to 65535 signifying the number of seconds to wait.
WAIT fraction-of-secondfraction-of-second is a decimal from .00 to .99 signifying the fraction of a second to wait.
Remarks
Section titled “Remarks”The value of seconds signifies the maximum number of seconds that the WAIT suspends program execution. Seconds - 1 represents the minimum number of seconds. In other words, the actual wait period is the value of seconds, +0/-1.
WAIT for a fraction of a second may not exceed two decimal places. If a particular Operating System does not support timers, the value is automatically changed to 1.
WAIT 0 is automatically changed to WAIT .01 if available, otherwise to WAIT 1.
Mixed numbers are not allowed and will produce an error 41.
Examples
Section titled “Examples”WAIT 23Suspends program execution for 22 to 23 seconds.
WAIT .25Suspends program execution for .25 seconds.
WAIT 1/3Will produce an error 41 if PRECISION is set greater than 2.
WAIT 0Suspends program execution for .01 seconds.
From the Thoroughbred Basic Language Reference, Volume III: R–Z, version 8.9.1. Open this page in the PDF