REM

Top  Previous  Next

Action

Instruct the compiler that comment will follow.

 

 

Syntax

REM or '

 

 

Remarks

You can comment your program for clarity.

You can use REM or ' followed by your comment.

All statements after REM or ' are treated as comment so you cannot

use statements after a REM statement.

 

It is also possible to use block comments:

'(  start block comment

print "This will not be compiled

')  end block comment

 

Note that the starting ' sign will ensure compatibility with QB

Each block must be closed with a ')

 

 

Example

REM  TEST.BAS version 1.00

PRINT a        '    " this is comment   :  PRINT " hello"        

                         ^--- this will not be executed!