Subject Re: [IBO] Modify an operation of the IB_UPDATEBAR
Author H.Klomann
Hallo,

do like this :


IB_UpdateBar1BeforeAction:

case UpdateBar.FocusedButton of
ubDelete : if condition then begin
MessageDlg(AMsg,mtError,[mbOK],0);
SysUtils.Abort;
end;
end;
end;


Harald



pepmallorca schrieb:


>
> Hello:
>
> I have an IB_UpdateBar with a IB_Query.
>
> If the user select the REMOVE button.
>
> How can I avoid delete the record if a condition is true (ex: exists
> records in another table).
>
> Do I have to intercept an event of the IB_UpdateBar?
> IB_UpdateBar1BeforeAction?
>
> Do I have to intercept an event of the IB_Query?
>
> How?
>
> Thank you,
>
>
> ___________________________________________________________________________
> 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 !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/