Visual Basic Error Handling Tips and Tutorials buttons error handling vb script |
|
|
|
|
Error Handling tutorials
|
|---|
Error handler
In this tutorial we will teach you to add a errorhandler to your applications. It's very easy and it saves lots of time when debugging your applications.
| | Hits:263 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
| | | |
|---|
Error Handling
The bottom line is that all of us make mistakes. VB is pretty clever about finding syntax errors within the IDE, but a number of the possible errors simply cannot be discovered until you try to run the program. This section discusses some of the available error detection and correction techniques.
The bottom line is that all of us make mistakes. VB is pretty clever about finding syntax errors within the IDE, but a number of the possible errors simply cannot be discovered until you try to run the program. This section discusses some of the available error detection and correction techniques.
--------------------------------------------------------------------------------
Users Hate Errors!
If you make an error in VB, and you haven't written the code needed to respond to the error, do you know what happens? Well, VB simply puts up a message box saying there was an error. If you click on the OK button in the message then the VB program shuts down without saving anything that your user might have typed in. Let's be perfectly clear - This is not good! Your users will not like it and they will tell you about it.
It's amazingly hard for a programmer to figure out how a user will mis-use the program. Actually, the term "mis-use" is not correct because the user will simply do whatever the application allows him to do. If the programmer didn't anticipate a particular input that can crash the program or if the programmer didn't anticipate a particular combination of entries that could also crash the program, then shame on the programmer!
At a minimum, the programmer must allow for the possibility of an unknown error occurring and providing a means within the code to respond to the error, giving the user options to save (or not) any data already entered
| | Hits:228 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
| | | |
|
|---|
Error handler
In this tutorial we will teach you to add a errorhandler to your applications. It's very easy and it saves lots of time when debugging your applications.
| | Hits:263 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
|
|---|
Error Handling
The bottom line is that all of us make mistakes. VB is pretty clever about finding syntax errors within the IDE, but a number of the possible errors simply cannot be discovered until you try to run the program. This section discusses some of the available error detection and correction techniques.
The bottom line is that all of us make mistakes. VB is pretty clever about finding syntax errors within the IDE, but a number of the possible errors simply cannot be discovered until you try to run the program. This section discusses some of the available error detection and correction techniques.
--------------------------------------------------------------------------------
Users Hate Errors!
If you make an error in VB, and you haven't written the code needed to respond to the error, do you know what happens? Well, VB simply puts up a message box saying there was an error. If you click on the OK button in the message then the VB program shuts down without saving anything that your user might have typed in. Let's be perfectly clear - This is not good! Your users will not like it and they will tell you about it.
It's amazingly hard for a programmer to figure out how a user will mis-use the program. Actually, the term "mis-use" is not correct because the user will simply do whatever the application allows him to do. If the programmer didn't anticipate a particular input that can crash the program or if the programmer didn't anticipate a particular combination of entries that could also crash the program, then shame on the programmer!
At a minimum, the programmer must allow for the possibility of an unknown error occurring and providing a means within the code to respond to the error, giving the user options to save (or not) any data already entered
| | Hits:228 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
|
WebmastersHome.com Discussion about programming, SEO, WebHosting and more! |
|
Pages : 1 |
|