WAIT Verb - Suspend Execution of Current Task

Syntax

WAIT int

Description

For BBj-specific information, see the WAIT Verb - BBj.

The WAIT verb suspends execution of the current task.

Parameter

Description

int

Number of seconds to suspend the current task. It must be in the range of 0 to 255. (Some systems may allow waits longer than 255 seconds.)

NOTE: WAIT may not be precisely accurate because it can be altered by other factors that govern timed pauses in a system.

Suspending a WAIT statement with an interrupt is the preferred way to put a timed pause into program execution. As opposed to empty FOR .. NEXT loops, WAIT statements are not affected by processor speed.

Examples

1000 WAIT 1

See Also

Verbs - Alphabetical Listing