-
Can't you make a general error handling procedure?
Like if you put it in Form_Load that it will work for all Subs and Functions?
I know you can make a sub for your error handling.. but you can't exit the current function from there right?
Can't you make like the option explicit that it will work in all the subs? :(
it makes me kinda crazy (:confused:) copying and pasting the errorhandling code in all subs.
Code:
option on Error Goto handleit
Private function handleit()
Restore all
Show MsgBox with error
Exit Current Sub
End Sub
Isn't that possible?
-
You might be able to do something with events, but i'm not sure. This is something that frustrates all VB developers, but global error handling is supposed to be being tackled in VB7 with a global error object of some sort, along with try and catch functionality.
Not much help right now I know...