Chapter09 Slides - Programming in V isual Basic 2010: The...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Opportunity Click to edit Master subtitle style Programming in Visual Basic 2010: The Very Beginner’s Guide Chapter 09 File I/O
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Agenda Homework 8 Debugging Try/Catch Blocks Databases will be next Tuesday
Background image of page 2
Try-Catch Blocks Goal of a developer is to write bullet-proof software Crash is the worst possible outcome for a program Most errors can be avoided Most errors can be managed with exception handling Developer should anticipate errors Exception handling The process of handling runtime errors in a program
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
When to Use Try-Catch Blocks Empty TextBoxes cause problems Data conversions can cause problems Some numbers cannot be converted to other data types Some strings cannot be converted to numbers Use Try-Catch block to manage possible exceptions Trap - catching and handling runtime errors in a
Background image of page 4
Try-Catch Syntax Try 'Programming statement(s) Catch ex As Exception 'How to handle specific exceptions [Finally] ‘Finally is optional 'Other programming statements End Try
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/29/2010 for the course MIS 304 taught by Professor Mote during the Fall '08 term at University of Texas at Austin.

Page1 / 8

Chapter09 Slides - Programming in V isual Basic 2010: The...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online