REM

Function

REM denotes that the following text is a comment statement.

Syntax

REM text

or

‘ text

Example

1000 REM THIS ROUTINE CLEARS THE DISPLAY
1010 REM
1020 PRINT CHR$(1);
1030 RETURN

Remarks

REM statements are ignored by the program. They can considerably improve readability but only at the expense of extra memory. Unnumbered REM statements can be used in host computer files which will be ignored when down loaded.

The apostrophe may be used instead of ‘REM’, but has an extra capability. When delimiting a comment after a Basic statement, the colon is unnecessary.

10 X=X+1' THIS TYPE OF COMMENT SAVES MEMORY SPACE

REM statements are also used as HELP source text.