qbasic.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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►