The VBScript Network and Systems Administrator's Cafe:

working with variables


December 29, 2008  3:21 PM

Using special characters in VBScript strings

Posted by: Jerry Lees
ASCII, Special Characters, string, String manipulation, strings, VBScipt, working with variables

I just realized I've been using Visual Basic String constants in my scripts with little to no explanation. We'll rectify that situation right now! ;-) When dealing with strings in VBScript, you occasionally need to add formatting characters to a string, so that when it is displayed on the screen...

October 30, 2008  12:00 AM

A new found bug in VBScript that causes if then statements to return wrong comparisons (or is it?)

Posted by: Jerry Lees
Integer, string, Variable Types, variant, VBScript, working with variables

In the past I've cautioned you on always initializing your variables and encouraged you to always declare your variable types, rather than using the default variant type in VBScript. I'll be the first to admit I don't follow my own advice in my examples! However, variants can be...

August 1, 2008  10:00 PM

VBScript Statements: Explanation of the Set Statement

Posted by: Jerry Lees
Objects, set, set command, VBScript, VBScript Objects, VBScript Statements, working with objects, working with variables

The set statement is used to assign any value to any type of variable. For the most part this command is optional. However, it needs to be used when you are assigning an object reference to a variable, such as when you use a variable to hold the return of a CreateObject function for later...


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: