DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Method: IsObject for VBS

Method: IsObject for VBS

Specifies whether an expression refers to a valid automation object.

vIsObject = Object.IsObject(identifier)
ObjectVBS
Object with this method. You do not need to specify this object.
identifierVariant
Specifies any expression.
vIsObjectVariant
The IsObject method returns True if the expression refers to a valid automation object. Otherwise the method returns False.

The following example checks whether a variable contains a valid automation object:

Dim MyInt, MyObject
Set MyObject = View.ActiveSheet
Call MsgBox(IsObject(MyObject)) ' Returns True
Call MsgBox(IsObject(MyInt))    ' Returns False

See Also

Objects Overview

Related Topics

IsArray | IsDate | IsEmpty | IsNull | IsNumeric | IsObject | TypeName | VarType

In This Section
Was this information helpful?