IsObject

Returns a Boolean value indicating whether an expression references a valid Automation object.

Syntax
      IsObject(expression)

Key
   expression    Any expression.

IsObject returns True if expression is a variable of Object subtype or a user-defined object; otherwise, it returns False.

Examples

Test if an identifier represents an object variable:

Dim MyInt, MyCheck, MyObject

Set MyObject = Me

MyCheck = IsObject(MyObject) ' Returns True.

MyCheck = IsObject(MyInt) ' Returns False.

“I have no money, no resources, no hopes. I am the happiest man alive” ~ Henry Miller

Related:

Syntax - IsBlank function to detect Empty or NULL or Zero.


 
Copyright © SS64.com 1999-2019
Some rights reserved