In Scripter, object variables contain references to ActiveX objects. Creating the program Application object is an example of declaring an object variable:
Dim mvApp As Object
Set mvApp = CreateObject(" MapViewer.Application")
In this example, a DIM statement declares that the variable named mvApp holds a reference to an object. The built-in CreateObject function returns a reference to a MapViewer Application object, and the SET statement assigns this object reference to the mvApp variable. Unlike variables of other types, which can be assigned new values simply with an equal sign ( = ), object variables must be assigned values with a SET statement.
See Also