Description
In VBScript, object references are assigned differently from other values: to assign an object to a variable, you should use the Set keyword:
VBScript
Set p = Sys.Process("notepad")
To distinguish between object and non-object assignments, you should use the AssignSyntax.IsObject property. If this property is True, which means that the AssignSyntax.Right expression returns an object reference, the syntax subsystem will add the Set keyword before the variable name in the generated assignment statement.
Declaration
Applies To
The property is applied to the following object:
Property Value
True, if the expression specified by the Right syntax element results in an object reference. Otherwise, False.
