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 Statement QuickSCREEN
◄QuickSCREEN► ◄Details► ◄Example► ◄Contents► ◄Index►
──────────────────────────────────────────────────────────────────────────────
GOSUB...RETURN - a control flow statement that branches to, and
returns from, a subroutine
Syntax
GOSUB {linelabel1 | linenumber1}
[statements]
RETURN [linelabel2 | linenumber2]
■ linelabel1 or linenumber1 is the label of the first line of the
subroutine
■ The optional linelabel2 or linenumber2, used on the RETURN statement
that ends the subroutine, is a ◄Detail►
See Also ◄RETURN► ◄SUB►