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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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: