Error handling in Delphi 1.0
Posted on 1997-10-16
I am a student who is beginning to use Delphi 1.0 .
Would you pleez send me an explaination of how to and/or the specific code on :
1) While entering information into a database, if the wrong type of information is entered into a field of a specific type Delphi produces an error causing the program to stop.
An example would be, when alphanumeric data is entered into a numeric field and the record is posted, an error is produced and the program is terminated.
I need help on how to handle this error by giving the user an error message without terminating the program so that the user can go back and correct such a problem.
2) When one tries to post data into a table that is not in edit or insert mode, an error is produced and the program terminates. This is in the case where one uses a DBNAVIGATOR button.
How does one go about avoiding such termination by being able to provide the user with a suitable message to go back correct the situation.
If my questions are not sufficiently clear or ambigious, please provide any helpful information and coding on one goes about handling errors in Delphi 1.0.
Your attention will be highly appreciated.