The VBScript Network and Systems Administrator's Cafe

May 24 2008   3:47PM GMT

VBScript Statements: Explanation of the Dim Statement

Jerry Lees Jerry Lees Profile: Jerry Lees

The DIM statement is used to declare variables prior to being used. To save space in your code, you can declare more than one variable in a single statement by separating each variable with a comma.

For example:

Dim x
Dim x, y, z

The Dim statement is not required in VBScript because VBScript will automatically create variables at the time you first use them.

 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: