f you program and distribute VISUAL BASIC PROJECTS, you will be aware of the need for a coherent error handling functionality in your projects. Obviously, errors should be avoided wherever possible, but with the huge variation in Modern PCs you can never rule out the possibility of errors occurring. Think how much better it would be to produce detailed error reports rather than relying on Visual Basic’s poor internal error handling.
B Caretaker is a small but extremely powerful utility designed to insert code into your Visual Basic projects. Its primary function is to insert error checking into your projects, and it has been designed to allow you to do this with minimum fuss and maximum flexibility.
Using VB Caretaker you can:
• Insert error handling into a project and save it to a new location. This way you can always work on a version with no error handling, but compile and distribute versions with error handling. (VB Caretaker will even compile the project for you!)
• Insert line numbers to aid debugging.
• Gather information on the status and value of variables.
VB Caretaker gives you limitless flexibility for inserting code into your routines. For example, at Mammoth Software we also use VB Caretaker to insert basic profiling into our projects
VB Caretaker has a built in editor that allows you to directly edit the VB script you wish to insert. You can add two types of code:
• Code at the start of a routine, for example to Declare variables or add On Error Goto statements.
• Code at the end of a routine, to act when an error occurs, or to finishing timing a routine.
You can also add forms, modules and classes to the project, allowing you to add database connectivity, pre-written global error handling modules, pre-designed forms to give your project that standard look and much more.