QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

REM allows explanatory comments, or remarks, to be inserted in a program. REM statements extend to the end of the line and the text is ignored when the program is run.

Syntax

REM this is a comment apostrophe this is also a comment

Description

Example(s)

Avoiding an END IF error.


REM This is a remark...
' This is also a remark...
IF a = 0 THEN REM this statement is executed so this is a single-line IF statement
IF a = 0 THEN ' this comment is not executed so this is a multi-line IF statement and END IF is required
END IF 

See Also