1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 15:35:53 +00:00
QB64-PE/internal/help/REM.txt
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

30 lines
987 B
Plaintext

'''REM''' or an apostrophe is used for programmer remarks, comments or to stop the execution of program code.
{{PageSyntax}}
:: REM program comment or ignore code
{{PageDescription}}
* Comments cannot be read by Qbasic correctly and may cause syntax and other errors without REM!
* Instead of REM you can use the {{KW|REM|'}} symbol which can be put anywhere.
* Code can also be commented out for program testing purposes.
* Qbasic Metacommands such as {{KW|$DYNAMIC}} and {{KW|$INCLUDE}} require the use of REM or the apostrophe.
''Example:'' Avoiding an END IF error.
{{CodeStart}} '' ''
{{Cl|REM}} This is a remark...
' This is also a remark...
{{Cl|IF...THEN|IF}} a = 0 {{Cl|THEN}} {{Cl|REM}} (REM follows syntax rules)
{{Cl|IF...THEN|IF}} a = 0 {{Cl|THEN}} '(apostrophe doesn't follow syntax rules, so use END IF after this)
{{Cl|END IF}} '' ''
{{CodeEnd}}
{{PageSeeAlso}}
* [[Apostrophe]]
* {{KW|$DYNAMIC}}, {{KW|$STATIC}}, {{KW|$INCLUDE|$INCLUDE:}}
{{PageNavigation}}