Quantcast
Channel: The VBScript Network and Systems Administrator's Cafe » Objects
Viewing all articles
Browse latest Browse all 2

VBScript Statements: Explanation of the Set Statement

$
0
0

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 reference in your code.

An example of the set command would look like:

Option explicit
Dim objDictionary
Set objDictionary = CreateObject(”Scripting.Dictionary”)


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images