Variable Declaration in VBScript

In your VBScript program, you will declare variables before you use them, and you will give them a name in the process. Here is an example of a variable declaration in VBScript:

Dim CustomerName

When you declare a variable like this, you are basically telling the computer "Reserve some memory for me, and please give that memory the name CustomerName." The computer (or, more precisely, the VBScript engine) keeps track of that memory for you, and whenever you use the variable name CustomerName, it will know what you are talking about.

First
Next