IB Statements/wait

From CometWiki

Jump to: navigation, search

WAIT statement

Syntax: WAIT

Discussion: The WAIT statement performs a "dummy input" on logical unit number 0 (i.e., the video screen). The WAIT statement suspends the program until the user presses the Enter key, after which the program proceeds to the next instruction. This statement provides a convenient way to keep the displayed information on the video screen as long as necessary.

The WAIT statement is a synonym for the following statement:

 INPUT (0) ""


History: This statement was added in Build 294.

Example: Print "Please align the paper and press Enter when ready..."

WAIT

.

.

In this example, a message is displayed on the video screen. The WAIT statement keeps the message on the screen until the user presses the Enter key, at which time the program proceeds to the next instruction.

Personal tools