SLEEP

The SLEEP instruction causes the program to pause for the specified number of seconds.

Syntax

SLEEP seconds
  1. seconds must be an integer expression.

Usage

The SLEEP instruction is typically invoked to let the end user read a message displayed on a character terminal.

With graphical applications, the SLEEP command is seldom used.

When seconds is lower than zero or is null, the program continues immediately with the next statement.

Example

MAIN
  DISPLAY "Please wait 5 seconds..."
  SLEEP 5
  DISPLAY "Thank you."
END MAIN