Subject TIB_Query, OnError and RaiseException
Author tickerboo2002 <support@tickerboo.com>
Hello

I'm just learning about IB exceptions and trying to give a more user
friendly response to the user.

I have a dialog containing a TIB_Grid and an Updatebar. When the
user tries to delete an entry which is protected by an FK constraint,
my TIB_Query.OnError shows a messagebox and sets RaiseException=false.
(This is immediately after clicking delete and before any transaction
methods are called)

However, my main exception handler (Application->OnException) then
catches an exception 'Record was not located'. This exception, does
not pass through TIBQuery.OnError. If I use a IB_SessionProp, this
does not catch the exception either.

Can anyone tell me what I'm doing wrong, or have hints on the best
Exceptions handling model.

Thanks

David

Using FB1, IBO4.2H, BCB5, Win2k