Use try...on error...finally (look at the Help) to trap it. I would suggest you seriously consider using something other than paradox and the BDE since the BDE is no longer supported. I used to love Paradox but have moved on. George -----Original Message----- From: [EMAIL PROTECTED] To: delphi-db@elists.org Sent: Sun, 25 Mar 2007 1:28 AM Subject: Handling BDE Keyviolations in Delphi forms
Hi there, A beginner's question! It's about handling key violation messages in Delphi forms. I have a form based on a paradox table. When data that violates the referential integrity key is entered the form collapses. What should I do to trap the error message and deal with it? Thank you Hanna _______________________________________________ Delphi-DB mailing list Delphi-DB@elists.org http://www.elists.org/mailman/listinfo/delphi-db ________________________________________________________________________ AOL now offers free email to everyone. Find out more about what's free from AOL at AOL.com. _______________________________________________ Delphi-DB mailing list Delphi-DB@elists.org http://www.elists.org/mailman/listinfo/delphi-db