May 24, 2008 3:47 PM
Posted by: Jerry Lees
DIM,
DIM Statement,
VBScript,
VBScript Statements,
vbscriptstatementsThe 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...
May 23, 2008 8:00 PM
Posted by: Jerry Lees
Const,
Const statement,
VBScript,
VBScript Statements,
vbscriptstatementsThe Const statement is useful when you want to reference a specific, unchanging, value in your code multiple times without typing it over and over.
For example, in order to use the Const Statement to create a reference to the value of pi to 50 decimal places, you use...
May 21, 2008 6:49 PM
Posted by: Jerry Lees
else,
If Then,
IF Then Else,
Logical File,
Then,
VBScript,
VBScript Statements,
vbscriptstatementsThe If/Then/Else statement in VBScript is very similar to the Select Case statement, except it only normally allows for 2 possibilities in your condition. ...
May 9, 2008 5:54 PM
Posted by: Jerry Lees
Functions,
VBScript,
VBScript Statements,
vbscriptstatementsThe Select ... Case VBScript statement is a very powerful way to easily preform specific actions based on a comparison of a variable to a series of cases you specify, plus it allows for the fact that NONE of the cases apply with an optional case else...
March 12, 2008 5:38 PM
Posted by: Jerry Lees
Development,
Error control,
Variable Types,
VBScript,
VBScript StatementsAs an answer to the extra credit portion of my posting a few days ago:
DIM in a script declares a variable to be used. It just simply creates the variable, nothing more. By default, vbscript will create variables on the fly for you as you use them...
March 3, 2008 9:11 PM
Posted by: Jerry Lees
Development,
Networking,
Objects,
SQL,
VBScript,
VBScript StatementsIn my last blog entry I explained error control via on error resume next and on error goto 0, there are other ways as well-- but for now this should work to get us by.
Next well discuss the Set, GetObject, ExecQuery,...