The VBScript Network and Systems Administrator's Cafe:

VBScript Statements


May 4, 2009  5:10 PM

VBScript Statements: Explanation of the Execute Statement



Posted by: Jerry Lees
execute, execute statement, VBScript, VBScript Statements, vbscriptstatements

The VBScript Execute statement allows you to execute a series of VBScript statements as a block from within a VBScript Script. By itself it doesn't sound terribly appealing... after all, Executing a series of VBScript statements is what you do inside a VBScript file. However, if you consider...

September 27, 2008  8:19 PM

VBScript Statements: Explanation of the Private Statement



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...


September 26, 2008  7:54 PM

VBScript Statements: Explanation of the On Error Statement



Posted by: Jerry Lees
Error control, on error, VBScript Statements

The on error statement allows you to somewhat control how the scripting engine handles errors in the scripts you write. It allows you to turn error handling on and off for the scripting engine so that you can handle them in your script.  The Statement essentially has two ways it is used. First...


September 20, 2008  8:10 PM

VBScript Statements: Explanation of the Property Get Statement



Posted by: Jerry Lees
Property, Property Get, VBScript Statements

Within a VBScript class the Property block allows you to Get the value of the property in the class. This statement works in conjunction with the Property Let and Property Get statements and can only be used inside a class inside VBScript-- and no where else in the script.  By default the...


September 19, 2008  7:50 PM

VBScript Statements: Explanation of the Property Set Statement



Posted by: Jerry Lees
Property, property set, VBScript, VBScript Statements

Within a VBScript class the Property block allows you to set the value of the property in the class. This statement works in conjunction with the Property Let and Property Get statements and can only be used inside a class inside VBScript-- and no where else in the script. This would in turn be...


September 18, 2008  7:31 PM

VBScript Statements: Explanation of the Property Let Statement



Posted by: Jerry Lees
Classes, Property, Property Let, VBScript, VBScript Statements

Within a VBScript class the Property block allows you to set the name of the property in the class. This statement works in conjunction with the Property Set and Property Get statements and can only be used inside a class inside VBScript-- and no where else in the script.  By default the...


September 13, 2008  11:11 PM

VBScript Statements: Explanation of the Function Statement



Posted by: Jerry Lees
Functions, VBScript, VBScript Functions, VBScript Statements

The Function statement creates a function and allows you to list the arguments (if any) which are to be passed into the function.   The major difference between a function and a subroutine, is that a function can return a value. To return a value you...


September 6, 2008  11:41 PM

VBScript Statements: Explanation of the Public Statement



Posted by: Jerry Lees
Development, Public, Variable Types, VBScript, VBScript Statements

The VBScript Public statement creates a variable, function, subroutine, or class that is available outside the bounds of the scope it was created in and it functions very much like a global variable, except that it can be declared or initialized inside a non0-global code...


August 29, 2008  2:04 PM

VBScript Statements: Explanation of the Randomize Statement



Posted by: Jerry Lees
Random Numbers, randomize, VBScript Statements

The Randomize statement seeds the VBScript random number generation engine with a new seed. A seed is a user defined value that helps create a random number. There are no options for the Randomize statement, it's use is simply: Randomize


August 17, 2008  2:02 AM

VBScript Statements: Explanation of the ReDim Statement



Posted by: Jerry Lees
arrays, dimensional arrays, redim, VBScript Statements

The ReDim statement in VBScript allows you to declare a array, or a multi-dimensional array, in your code. Also, this statement allows you to re-declare the number of elements in the array at a later time in the code. This is important because it also allows you to release...


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: