Difference between revisions of "Line numbers"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
m
imported>Clippy
m
Line 6: Line 6:




* Line numbers or labels are used to denote a specific line of code with a colon when separating it from a code line.
* 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]] 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.
* [[GOSUB]] blocks require a [[RETURN]] with a line label or number or none to return to the original call.

Revision as of 22:38, 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. 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:



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