1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-03 07:41:21 +00:00
qb64/internal/help/Apostrophe.txt

31 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-02-18 17:11:22 +00:00
The '''apostrophe''' allows explanatory comments, or remarks, to be inserted in a program. These may be included anywhere in the source code and extend to the end of the line. Comments are ignored when the program is run.
2021-02-11 11:41:53 +00:00
{{PageSyntax}}
2021-02-18 17:11:22 +00:00
:: [[apostrophe|']] this is a comment
:: [[REM]] this is also a comment
2021-02-11 11:41:53 +00:00
2017-10-10 14:55:21 +00:00
{{PageDescription}}
2021-02-18 17:11:22 +00:00
* [[REM]] can also be used to insert comments but may only be used as the last, or only, statement on a line.
* QBasic [[metacommand]]s like [[$INCLUDE]] must be included in a comment using either [[REM]] or [[apostrophe|']].
* [[Apostrophe]] comments, unavailable in earlier dialects of the BASIC language, are now generally favored over [[REM]] statements for their greater flexibility.
* Comments are also useful for disabling code for program testing and debugging purposes.
2017-10-10 14:55:21 +00:00
{{PageExamples}}
{{CodeStart}}
2019-04-15 01:15:33 +00:00
COLOR 11: PRINT "Print this...." ' PRINT "Don't print this program comment!"
2017-10-10 14:55:21 +00:00
{{CodeEnd}}
{{OutputStart}}
{{text|Print this....|aqua}}
{{OutputEnd}}
2017-10-10 14:55:21 +00:00
{{PageSeeAlso}}
* [[REM]]
2021-02-18 17:11:22 +00:00
* [[$DYNAMIC]], [[$STATIC]], [[$INCLUDE]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}