IsObject()

Top  Previous  Next

IsObject() - Checks for a Valid Object

Description

This IsObject() function checks whether the supplied expression references a valid object.

Boolean = IsObject(Expression)

Returns True or False

Example

Dim MyObject

Set MyObject = CreateObject("ADODB.Connection")

 

If IsObject(MyObject) Then

   SMEvent.Raise "Trace", "The value is an Object"

End If