Subject Re: [IBO] Handling a FK violation in OnError
Author Antti Kurenniemi
Thank you Dany, I indeed had missed the Abort, even though I use it myself
in other places. I'll check it to see if it works safely enough.


Antti Kurenniemi

----- Original Message -----
From: "Dany M" <arbit@...>
To: <IBObjects@yahoogroups.com>
Sent: Friday, September 22, 2006 12:14 PM
Subject: Re: [IBO] Handling a FK violation in OnError
>
> I think Helen gave you the answer earlier but in convoluted text. If you
> want to stop IBO from further processing just do an Abort! Abort is VCL
> for throwing a silent exception (reservation for faulty semantics here).
>
> In stead of
>
> TIB_Query(Sender).Cancel;
>
> do
>
> RaiseException := false;
> Abort;
>
> IBO will not raise and exception (that will be of EIB_ISCError type and
> thus making noise) rather you yourself raise an excption of EAbort type
> and VCL will handle that silently (I hope).
>
> BTW, I don't know *exactly* what the method Cancel does. I never had to
> use it.
>
> HTH,
>
> /Dany
>
>
> ___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or
> InterBase
> without the need for BDE, ODBC or any other layer.
> ___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info
> papers,
> keyword-searchable FAQ, community code contributions and more !
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>