Home > Language Reference > Compilation > Rem

Rem

The Rem function inserts a comment in the script.

Usage

Used to include explanatory remarks in a script.

Syntax

Rem any text
or
' any text

Remarks

Any text following the Rem word or the quote character (') is not executed when the script runs.

To insert a block of remarks, use the delimiters /* and */ as in this example:
/* first line of remarks
    second line
    other lines
*/

Examples

Rem text blabla
'text blabla
Reboot(0) ' Insert a comment on the same line as the function call

/* All the lines are comments
A second line
A third line
*/
Msgbox("end of the comments")