Difference between revisions of "Line numbers"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
imported>Clippy
m
Line 16: Line 16:
* [[GOTO]], [[GOSUB]]
* [[GOTO]], [[GOSUB]]
* [[DATA]], [[RESTORE]]
* [[DATA]], [[RESTORE]]
* [[Line_number|Line number removal procedures]]




{{PageNavigation}}
{{PageNavigation}}

Revision as of 22:22, 22 December 2015

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