IsObject

Return TRUE if the identifier represents an object variable, otherwise returns FALSE.

Syntax
      IsObject(identifier)

Key
   identifier    The name of a variable.

This function only tests the datatype of a variable, it will still return TRUE if the variable has been set to nothing.

The IsObject() function may be used in VBA.

Examples

Dim myvariant, myCheck
Dim objDemo as Object
Set myvariant = objDemo
myCheck = IsObject(myvariant)

“Yellow-colored objects appear to be gold” ~ Aristotle

Related:

IsNull - Is expression NULL? True/False
Nz - Detect a NULL value.


© Copyright SS64.com 1999-2013
Some rights reserved