OH, and in case anyone else is interested, you can click one button to add either just the error handler to your sub/function or you can click another button to add the error handler and a comment block to the sub/function.
The module simply takes all the information and writes it to "error.log" in the current directory.
OH, and when you use mztools, it will automatically fill in the procedure name and module name for you
edit: I add this to all my projects and it saves me a TON of time.
Here is a small demo I use for error handling.
It records exactly which procedures the error ran through so debug is made very easy. If you force an "error" ie, "user not found" then a different style of message is displayed.
To test both types of error message just change which error line is remarked out....
You should ONLY EVER DISPLAY errors under click events or such like and never through custom subs/functions that u have written yourself.
Hope this demo is useful.
I have stripped this out of an ErrorHandling DLL I have. The full version also saves to a log file of your choice when you display the error, also it saves it to the DB....if a user has an error, then u will never have the situation where they say, I can't remember how I got it, coz you will have a 100% log of it all