
Chapter 26
ERROR HANDLING
E
rror handling is one of the most important parts of software development.
An application with bugs may produce the incorrect output, termination
of an application, or a user’s irritation. We will discuss some methods and
precautions in this chapter that will help you to develop an error-free application.
26.1 KEY HANDLING
To ensure that proper data is being inserted, lock other keys that may cause
errors.
For example, if you do not want to allow the user to enter any alphanumeric
characters in the text box where you want only numeric characters, you can lock
the character keys. To lock the keys of the keyboard you ...