Posted by: Jerry Lees
Classes, Private, VBScript Statements
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:
PrvVariable = 10