REM Statement
Delineates comments placed in a program without affecting program execution.
Syntax
REM comment
* comment
! comment
Syntax Elements
comment The text of the comment.
Operation
To place a comment in a program, type the letters REM, an asterisk (*), or an exclamation point (!) at the beginning of the statement, followed by the text of your comment.
If a comment does not fit on one line, you must use two REM statements.
Notes:
-
Do not follow a REM with an equal sign (=) unless the entire string that follows is enclosed in quotes.
-
If you use an exclamation point (!) at the beginning of a comment line (or all by itself) it causes a line of asterisks to be printed if the program is listed using the BLIST command. If it follows another DataBasic statement on the same line, it is treated as a normal comment line.
Examples
REM These DataBasic statements
REM do not affect program execution.
In this case, two REM statements were necessary to complete the comment.
IF Y < 2 GO 10 ; ! Transfers control back to start
Clarifies the operation.
GOSUB 30
.
.
30 * SUBROUTINE TO PRINT RESULTS
PRINTER ON
PRINT ...
Identifies the subroutine at statement label 30.