qbasic.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
REM Statement
  Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
Allows explanatory remarks to be inserted in a program.
 
REM remark
' remark
 
    ■ remark    Any text.
 
    ■ Remarks are ignored when the program runs unless they contain
      metacommands.
    ■ A remark can be inserted on a line after an executable statement if it
      is preceded by the single-quote (') form of REM or if REM is preceded
      by a colon (:).
 
Example:
    REM    This is a comment.
    '      This is also a comment.
    PRINT "Test1"       'This is a comment after a PRINT statement.
    PRINT "Test2" :  REM This is also a comment after a PRINT statement.
 
See Also    $STATIC, $DYNAMIC