Line numbers

From QB64 Wiki
Revision as of 22:18, 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.


Syntax

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.
  • 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:



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