The VBScript Network and Systems Administrator's Cafe

Jul 3 2008   2:55AM GMT

VBScript Statements: Explanation of the Rem Statement

Jerry Lees Jerry Lees Profile: Jerry Lees

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

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: