Difference between revisions of "Apostrophe"

From QB64 Wiki
Jump to navigation Jump to search
m (Delete unrelated See Also entry)
m (Add syntax section)
Line 1: Line 1:
The '''apostrophe''' is used to tell the compiler to ignore a statement or programmer comment.
The '''apostrophe''' is used to tell the compiler to ignore a statement or programmer comment.
{{PageSyntax}}
:: <b>'</b> a program comment


{{PageDescription}}
{{PageDescription}}

Revision as of 10:48, 7 February 2021

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


Syntax

' a program 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