IsObject Function |
Syntax:
IsObject(var)
Group:
Description: Returns the True if var contains an object reference.
Parameters:
Parameter |
Description |
A var contains an object reference if it is objexpr reference. |
Example:
Sub Main
Dim X As Variant
X = 1
Debug.Print IsObject(X) 'False
X = "1"
Debug.Print IsObject(X) 'False
Set X = Nothing
Debug.Print IsObject(X) 'True
EndSub
See Also: