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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Trapping 1

Status
Not open for further replies.

Logit

Programmer
Sep 23, 1998
20
US
Sorry to ask, I have attempted a search of the Tek-Tip files<br>
and it responds with a big, fat ZERO on this subject. Can't believe that .... but anyways ....<br>
<br>
I want to include a generic error trapping section to a personal project. Just something that will throw up a msgbox and exclaim &quot;You did something wrong, but I am not telling you what !&quot; then have the program continue as normal. I've researched the HELP files and all my programming books on creating an error trap but everything refers to specific error #'s. I'm not interested in being that precise with my personal project. Any suggestions what code to dump in the error trap to accomplish this ? Thanks !
 
Search for an &quot;On Error&quot; example in VB Help.<br>
Generally speaking, what you are proposing is not a very good idea. Error trapping is intended to allow both programmer and user a way to acknowledge errors as they occur.<br>
An infinite loop through a buggy subroutine, with no chance to abort, can be a frustrating experience. We may never learn the nature of the error but we inevitably learn a better way to handle errors.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top