Difference between revisions of "Apostrophe"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
m
imported>SMcNeill
(Style guidelines)
Line 1: Line 1:
The '''apostrophe''' is used to tell Qbasic to ignore a statement or programmer comment.
The '''apostrophe''' is used to tell the compiler to ignore a statement or programmer comment.
 
{{PageDescription}}
* Allows programmer comments or temporary code removal.
* [[REM]] can also be used to "comment out" a line.
* QBasic [[Metacommand|metacommand]]s must be commented either with an apostrophe or [[REM]].
* [[$INCLUDE]] requires an apostrophe before and after the included file name.




''Usage:'' COLOR 11: PRINT "Print this...." ' PRINT "Don't print this program comment!"
{{PageExamples}}
{{CodeStart}}
COLOR 11: PRINT "Print this...." ' PRINT "Don't print this program comment!"
{{CodeEnd}}


{{OutputStart}}
{{OutputStart}}
Line 9: Line 18:




* Allows programmer comments or temporary code removal.
{{PageSeeAlso}}
* [[REM]] can also be used to "comment out" a line.
* [[Metacommand]]s 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:''
 
* [[Comma]], [[Semicolon]]
* [[Comma]], [[Semicolon]]
* [[REM]]
* [[REM]]

Revision as of 00:49, 9 September 2017

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

Description

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


Examples

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

Print this....


See also



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