VB6 beginners tutorial - Learn VB6

Advanced VB6 tutorial - Learn Advanced VB6

Systems Analysis - System analysis and Design tutorial for Software Engineering

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

Setting Break on Unhandled Errors

The final option for error handling in the IDE is to Break on All Unhandled Errors. For this option if an error occurs and an errorhandling routine is in place, that error handler will be run and execution will continue without entering Break mode. If no error-handling routine is active (see the section "Using the Error-Handling Hierarchy") when a runtime error occurs, the program will go into Break mode.

The difference between breaking in class modules and breaking on unhandled errors comes into play when the code that generated a runtime error is in a class module. In Break in Class Module option, if an unhandled error occurred in a class module, Visual Basic would enter Break mode at that line of code in the class module. In the Break on All Unhandled Errors option, if the unhandled error occurs in a class module, Visual Basic enters Break mode at the line of code that referenced the procedure in the class module.


<< Previous | Contents | Next >>

Home | About Us | Privacy Policy | Contact Us

Copyright © | All Rights Reserved