DIAdem Help

Method: IsObject for VBS

  • Updated2024-09-12
  • 1 minute(s) read

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

Log in to get a better experience