Even if your source code is completely free of all bugs, application errors may still appear, whether from user data issues, integration problems with third-party components, or unexpected changes in the system environment. This chapter takes a concise look at error-handling techniques in Visual Basic. The terms exception and error are used synonymously throughout this chapter. Visual Basic supports the On ErrorGoTo style of error handling that was introduced with the original version of Visual Basic. This type of error handling is referred to as unstructured error handling. VB also supports the structured exception handling technique familiar to C++ programmers. |