AssignSyntax.IsObject Property

Applies to TestComplete 15.47, last modified on January 20, 2023

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

AssignSyntax.IsObject

Read-Write Property Boolean

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.

See Also

Left Property
Right Property

Highlight search results