OnUpdateError of TMyQuery not fired

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
chihebbs
Posts: 46
Joined: Tue 05 Jun 2007 20:06

OnUpdateError of TMyQuery not fired

Post by chihebbs » Thu 12 Mar 2009 14:07

If the connection has an OnError event, than subsequent OnUpdateError of TMyquery is not fired. How should I do to have a global OnError event in Myconnection to catch all error and OnUpdateError to catch specific error of MYQuery. Thank you.

using 5.55.039 CodeGear C++ 2007

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 13 Mar 2009 09:09

The OnUpdateError event is not fired when you set Fail=False in the OnError event of the connection.

If you need to process all errors in your application, you can use the OnException event of TApplication instead of the OnError event. Place the TApplicationEvents component from the Additional page on your form. Process exceptions in its OnException event.

Post Reply