1. Home
  2. Computing & Technology
  3. Visual Basic

Chapter 9 - Structured Error Handling

By Dan Mabbutt, About.com

9 of 10

Confusion in Disk Drive Error Handler ?

The previous page leads right into one of the last topics in the chapter, and also a smooth transition into the next chapter! The bug we just looked at is under a heading that is usually called "scope of variables" and it's very much a part of coding Modules and Procedures . Here's why that is important.

When you first look at the Disk Drive Error Handler example provided with the book, you might get a little confused because the program will try to access the file on the disk over and over - but there's no code in the program that tells the program to "try again". A moment's reflection will tell you that, of course, this happens because the event handler for the Button component always starts over. But, unless you code your program and the Catch clause so that a retry is attempted, the the program just goes on from that point.

Explore Visual Basic
By Category
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Visual Basic
  4. Learn VB.NET
  5. Trapping Errors Using Structured Error Handling

©2009 About.com, a part of The New York Times Company.

All rights reserved.