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.
ON...GOSUB, ON...GOTO Statements
◄Syntax► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
ON expression% GOSUB line-label-list
ON expression% GOTO line-label-list
■ expression% An index into the list of line labels and line
numbers. The value of expression% must be between
0 and 255, inclusive. See Details for information
on what happens if the value is greater than the
number of items in the list.
■ line-label-list A set of program line labels and line numbers,
separated by commas, that identifies the branches to
be taken. Line labels and line numbers can be used
in the same list.
See Also ◄SELECT CASE►