Page 1 of 1

OnUpdateError of TMyQuery not fired

Posted: Thu 12 Mar 2009 14:07
by chihebbs
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

Posted: Fri 13 Mar 2009 09:09
by Plash
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.