REM - QB64 Wiki


From QB64 Wiki

Jump to: navigation, search

REM or an apostrophe is used for programmer remarks, comments or to stop the execution of program code.


REM program comment or ignore code


  • Comments cannot be read by Qbasic correctly and may cause syntax and other errors without REM!
  • Instead of REM you can use the ' symbol which can be put anywhere.
  • Code can also be commented out for program testing purposes.
  • Qbasic Metacommands such as $DYNAMIC and $INCLUDE require the use of REM or the apostrophe.

Example: Avoiding an END IF error.

REM This is a remark... ' This is also a remark... IF a = 0 THEN REM (REM follows syntax rules) IF a = 0 THEN '(apostrophe doesn't follow syntax rules, so use END IF after this) END IF

See also:

Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page
Personal tools