Murach's Visual Basic 2005
How to handle exceptions and validate data
First, this chapter shows you how to use structured exception
handling so you can create bulletproof applications. Then,
it shows you the best ways to validate the data that the user
enters so exceptions are avoided. Frankly, this is the best
material on data validation that we've ever seen.
|
|
|
|
How to use the IsNumeric function
for data validation |
186 |
|
How to display a dialog box for
error messages |
188 |
|
How exception handling works |
190 |
|
|
How to catch an exception |
192 |
|
How to use the properties and methods
of an exception |
194 |
|
How to catch specific types of
exceptions |
196 |
|
How to throw an exception |
198 |
|
The Future Value application with exception
handling |
200 |
|
|
How to validate a single entry |
202 |
|
How to use generic procedures
to validate an entry |
204 |
|
How to validate multiple entries |
206 |
|
|
The dialog boxes |
208 |
|
The code |
208 |
|
|
How to use the Validating event |
212 |
|
How to use the masked text box |
214 |
|
 |
|
|
|
|
© Copyright 1998-2008 Mike Murach &
Associates, Inc. All rights reserved.
|