qck.hlp (Table of Contents; 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.
GOSUB...RETURN Statement
  Summary  Details                           Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 Branches to and returns from a subroutine. For a more structured alternative
 to GOSUB...RETURN subroutines, use SUB and FUNCTION statements.
 
    GOSUB line-label-to
    .
    .
    .
    RETURN [line-label-resume]
 
    ■ line-label-to          Line number or label of the first line of the
                             subroutine
 
    ■ line-label-resume      Line number or label where the subroutine
                             returns; if omitted, execution continues at the
                             statement following the GOSUB keyword
 
 See Also
    CALL Statement (Basic Procedures)      FUNCTION Statement
    Loops and Decision Structures          SUB Statement