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.
GOTO Statement
  Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
Branches to a specified line.
 
GOTO line
 
    ■ line    The label or number of the line to execute next.
 
    ■ DO...LOOP, SELECT CASE, IF...THEN...ELSE, SUB, and FUNCTION provide
      better ways to control the flow of your program.
    ■ GOTO is also used as a keyword in the ON ERROR statement.
 
Example
 
See Also    DO...LOOP    FUNCTION     IF...THEN...ELSE
            ON ERROR     ON...GOTO    SELECT CASE    SUB