VBScript Statements: Explanation of the Rem Statement - The VBScript Network and Systems Administrator's Cafe

The VBScript Network and Systems Administrator's Cafe

Jul 3 2008   2:55AM GMT

VBScript Statements: Explanation of the Rem Statement



Posted by: Jerry Lees
VBScript, Developer documentation, VBScript Statements, vbscriptstatements, REM

The VBScript REM statement is used to place a comment in your script or function. It is typically considered essential to place comments in code, not only to document what something does for others– but for yourself 6 months down the line.

 Another short hand method of placing a comment in the code is to use the ‘ character to comment the code. Below are two examples:

 Rem This is a comment
‘ This is a comment too
x=x+1 ‘this is a comment after a line of code, the code is processed and the comment is ignored.

Comment on this Post


You must be logged-in to post a comment. Log-in/Register