Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Global or Public Error Trapping?

Status
Not open for further replies.

Turbo

Programmer
Aug 23, 2000
93
US
I would like to insert an error trap once in a module of code to trap all errors rather than insert the trap in each sub routine. Can this be done? How?

Please advise.

Thanks,


Turbo [pc2]

"There is a fine line between confidence and conceit" - Ken Mai
 
An on error command, I believe, remains in effect until superceeded. I think it is best to do it individually though in each of the sub's.


Rollie E

P.S. you might consider writing an error log file with all the errors in it for later debugging.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top