How do I tell if an object = nothing without using any error handlers? (If Object = nothing returns an error.)
From MSDN Use error trapping to be sure that an object reference is valid.
When there's a question, there's an answer It obviously is possible. Code: If object Is Nothing Then MsgBox "Object is Nothing!" 'object is nothing, whatever code here. End If
If object Is Nothing Then MsgBox "Object is Nothing!" 'object is nothing, whatever code here. End If
Forum Rules