Explanation
REM Statement
Allows explanatory remarks to be inserted in a program.Worth knowing
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
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 (:). |
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 |