On some of my error handlers I am attempting to output to a log file the current values of different of the variables. The problem I have is determining if I have created the object yet. For example
on error goto main_err
dim bob as client
... <a>
set bob = new client
... <b>
main_err:
debug.print bob.number
So, if I have an error in section <a> I will get another error in the error handler because bob does not exist yet. Is there a VB function that returns a true/false value how whether or not the object exists? Something like this
if exists(bob) then
debug.print bob.number
end if
Thanks
on error goto main_err
dim bob as client
... <a>
set bob = new client
... <b>
main_err:
debug.print bob.number
So, if I have an error in section <a> I will get another error in the error handler because bob does not exist yet. Is there a VB function that returns a true/false value how whether or not the object exists? Something like this
if exists(bob) then
debug.print bob.number
end if
Thanks