Kare, Oh, yeah, I generally put my data access code in a procedure and wrap it in both a try . . . finally . . . end and an try . . . except . . . end within that so that I can trap the exceptions and either handle them or, at least, humanize the error messages (so I can figure out where the error happened ;-)) and so that I can make sure that I clean up things even if there is an exception thrown.
At 03:37 AM 3/26/2007, you wrote: >Hello! > >What kind of databasesoftware are you using, if you don't use BDE any more?? > >TIA >Kåre! > >----- Original Message ----- >From: <[EMAIL PROTECTED]> >To: <delphi-db@elists.org> >Sent: Sunday, March 25, 2007 6:53 PM >Subject: [!! SPAM] Re: Handling BDE Keyviolations in Delphi forms > > > > 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 > >_______________________________________________ >Delphi-DB mailing list >Delphi-DB@elists.org >http://www.elists.org/mailman/listinfo/delphi-db Ralph D. Wilson II Systems Analyst Home: (210) 497-2643 Cell: (210) 387-7744 Fax: (210) 497-5726 [EMAIL PROTECTED] [EMAIL PROTECTED] _______________________________________________ Delphi-DB mailing list Delphi-DB@elists.org http://www.elists.org/mailman/listinfo/delphi-db