Freetutes.com

VB6 beginners tutorial - Learn VB6

Advanced VB6 tutorial - Learn Advanced VB6

VB .NET - Learn Visual Basic .NET

Systems Analysis - System analysis and Design tutorial for Software Engineering


You are here: Visual Basic > Advanced VB6 tutorial > Chapter 11

Setting Break on All Errors

Error-handling options are set in the development environment with the Options dialog box. From the Visual Basic menu, choose Tools and then Options. The Options dialog box appears. The errorhandling options are on the General tab, as shown in Figure 11.1.

The error-handling options available
FIGURE 11.1 The error-handling options available

The first option for error handling in the development environment is to Break on All Errors. If this option is selected and a runtime error occurs in your application, the program will stop immediately. Execution will stop regardless of any error-handling procedures you have in your code (discussed later in "Handling Errors in Code"). The program stops regardless of whether the code that caused the error is in a class module that is part of your Visual Basic environment.

Remember that these options are in effect only when you are running your code in the Visual Basic development environment, not for Executables. Breaking on All Errors is usually used when you have very little error handling in your procedures and you expect some runtime errors to occur. It enables you to find and correct the errors while you run your project interactively.


  

<< Previous | Contents | Next >>

Home | About Us | Privacy Policy | Contact Us

Copyright © Freetutes.com | All Rights Reserved