Link to home
Start Free TrialLog in
Avatar of RuschWEB
RuschWEB

asked on

Error Handler

Where do I put the Error Handler so that it can be accessed throughout my entire program?
- from all different subs and functions, whenever an error occurs..
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Hi RuschWEB,

You cannot, VB does not do this. You have to include error handling specifically in each sub/function etc.

If you were for example to start your application from Sub Main and only place error handling in this sub, any error that occurred would be handled in that it would return error control to that sub's error handler. However it *WILL NOT* then resume from the appropriate place in the sub or function that called it.

Tim Cottee MCSD, MCDBA, CPIM
http://www.timcottee.tk 

Brainbench MVP for Visual Basic
http://www.brainbench.com

Experts-Exchange Advisory Board Member
ASKER CERTIFIED SOLUTION
Avatar of WHalphen
WHalphen

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial