Difference between revisions of "Apostrophe"

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




''Usage:'' PRINT "Print this...." ' PRINT "Don't print this program comment!"
''Usage:'' COLOR 11: PRINT "Print this...." ' PRINT "Don't print this program comment!"


{{OutputStart}}
{{OutputStart}}
Print this....
{{text|Print this....|aqua}}
{{OutputEnd}}
{{OutputEnd}}



Revision as of 06:13, 18 October 2010

The apostrophe is used to tell Qbasic to ignore a statement or programmer comment.


Usage: COLOR 11: PRINT "Print this...." ' PRINT "Don't print this program comment!"

Print this....


  • Allows programmer comments or temporary code removal.
  • REM can also be used to "comment out" a line.
  • Metacommands require that they are commented either with an apostrophe or REM.
  • $INCLUDE requires a "comment" apostrophe before and after the included file name also.


See also:



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