Line numbers

From QB64 Wiki
Revision as of 22:27, 22 December 2015 by imported>Clippy
Jump to navigation Jump to search

Line numbers or line labels are used to mark GOTO or GOSUB procedure lines.


GOTO {line number| line label}

  • Line numbers or labels are used to denote a specific line of code with a colon when separating it from a code line.
  • GOSUB or DATA block line labels can be numerical or text line names. RESTORE can use the label to reuse data.
  • GOSUB blocks require a RETURN with a line label or number or none to return to the original call.
  • GOTO can refer to a specific numerical line number or text line labels.
  • Line numbers are no longer required in QB64 except for GOSUB or GOTO situations!

See also:

Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page