Staying in Control War Against Bugs Visual Basic / Error Handling
Program bugs are highly ecological because program code is a renewable resource. If you fix a bug, another will grow in its place. And if you cut down that bug, yet another will emerge; only this one will be a mutation with long, poisonous tentacles and revenge in its heart, and it will sit there deep in your program, cackling and making elaborate plans for the most terrible time to strike.
Software Testing Visual Basic / Error Handling
Software development projects come in all shapes and sizes, and they also vary in their nature. In terms of business applications, a standalone telephone directory system for a medium-sized company probably exists at the "relatively simple" end of the spectrum.
Error Handling Visual Basic / Error Handling
Handling errors properly in Visual Basic is a good idea because of the alternative: Visual Basic's default error handling rules are rather severe. Unhandled errors are reported, and then an End statement is executed.
Error Handling Visual Basic / Error Handling
The bottom line is that all of us make mistakes. VB is pretty clever about finding syntax errors within the IDE, but a number of the possible errors simply cannot be discovered until you try to run the program. This section discusses some of the available error detection and correction techniques.