Initializing The Variable

In VBScript, whenever you have a piece of information that you need to work with, you would declare a variable using the syntax I demonstrated a moment ago. At some point in your script, you're going to need to place a value in that variable - otherwise, what would be point of declaring it? Placing a value in a variable for the first time is called initializing the variable. Sometimes you initialize a variable with a default value. Other times, you might ask the user for some information, and initialize the variable with whatever the user types in. Or you might open a database and use a previously-stored value to initialize the variable.

First
Next