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:

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.

Go to top button