bas7advr.hlp (
Topic list)
SLEEP Statement Details
◄Syntax► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
SLEEP suspends execution of the calling program.
SLEEP [seconds&]
Usage Notes
■ SLEEP responds only to keystrokes that occur after it executes.
■ SLEEP ignores characters in the keyboard buffer that were typed
before it executed.
■ An event (such as ON COM or ON TIMER) cannot interrupt a SLEEP
suspension unless its trapping is active when the event occurs. This
means that trapping must have been initialized with an ON event
statement, turned on with an event ON statement, and not have been
disabled with an event OFF statement or an event STOP statement.