| .SLEEP Statement Details. |
|
  QuickSCREEN       Details       Example       Contents       Index |
| ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ |
| SLEEP Statement Details |
|
| Syntax |
|   SLEEP [seconds] |
|   |
| The optional argument seconds determines the number of seconds the |
| program is suspended. |
|   |
| The SLEEP statement suspends the program until one of the following |
| events occurs: |
|   ž The time period in the seconds argument has elapsed. |
|   ž A key is pressed. |
|   ž An enabled event occurs. |
|   |
| If seconds is zero, or not specified, the program is suspended |
| indefinitely. Only a keystroke or an enabled event can interrupt an |
| indefinite suspension. |
|   |
| 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. |
|   |