TEMyError don't trap exception ...

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 1
Joined: Sun 21 Nov 2004 22:43

TEMyError don't trap exception ...

Post by gscandale » Tue 20 Dec 2005 23:13

I use MyDAC with TMYTable.
I want to trap a post error when a user attempt to insert
a record mssing a required field. It's possible?
Can you write a sample code ?
Thanks in advance.

(a registered user from Italy)

Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Wed 21 Dec 2005 10:47

Use MyTable.BeforePost event handler.

Post Reply