How do I tell if an object = nothing without using any error handlers? (If Object = nothing returns an error.)
Printable View
How do I tell if an object = nothing without using any error handlers? (If Object = nothing returns an error.)
Quote:
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