qbasic.hlp (Topic list)
STOP Statement
  Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
Halts a program.
 
STOP
 
    ■ The STOP keyword also suspends trapping of events in these statements:
 
      COM, ON COM      KEY, ON KEY         PEN, ON PEN
      PLAY, ON PLAY    STRIG, ON STRIG     TIMER, ON TIMER
 
Example:
    FOR i% = 1 TO 10
        PRINT i%
        IF i% = 5 THEN STOP     'STOP pauses; F5 Continues.
    NEXT i%
 
See Also     END    SYSTEM