Difference between revisions of "Colon"

From QB64.org wiki
Jump to: navigation, search
(Created page with 'A '''colon''' can be used to separate two unrelated procedure statements on the same line. ''Usage:'' COLOR 10: PRINT "Hello "; : COLOR 12: PRINT "World" {{OutputStart}} {{tex…')
 
m
 
Line 12: Line 12:
 
* Some statements such as [[END IF]] and [[Metacommand]]s require a new code line!
 
* Some statements such as [[END IF]] and [[Metacommand]]s require a new code line!
 
* Use [[Semicolon|semicolons]] and [[Comma|commas]] where appropriate in [[PRINT]]s.
 
* Use [[Semicolon|semicolons]] and [[Comma|commas]] where appropriate in [[PRINT]]s.
 +
* Use an [[underscore]] at the end of a line to extend a line of code to the next line.
  
  

Latest revision as of 01:11, 3 December 2010

A colon can be used to separate two unrelated procedure statements on the same line.


Usage: COLOR 10: PRINT "Hello "; : COLOR 12: PRINT "World"

Hello World


  • Use colons to combine variable definition statements or screen prints.
  • Some statements such as END IF and Metacommands require a new code line!
  • Use semicolons and commas where appropriate in PRINTs.
  • Use an underscore at the end of a line to extend a line of code to the next line.


See also:



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page