The VBScript Network and Systems Administrator's Cafe

Sep 27 2008   8:19PM GMT

VBScript Statements: Explanation of the Private Statement

Jerry Lees Jerry Lees Profile: Jerry Lees

The Private statement is used to declare a variable as being Private inside a script. If used outside of a class it has little effect and the variable can be used throughout the script, however, if used inside a class statement it will only be able to be used inside the class statement itself.

The use of this statement works exactly like using Dim, except that the initialization of the variable must happen on a second line of code. Below is an example:

Private PrvVariable
PrvVariable = 10

 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: