Subject Re: [IBO] Modify an operation of the IB_UPDATEBAR
Author pepmallorca
Hi,

I write this message only to say that it works ok.

Thanks,

--- In IBObjects@y..., "H.Klomann" <nibler@t...> wrote:
> Hi José,
>
> > If I wan't avoid insert duplicate records if the user go to
the '+'
> > button of the IB_UpdateBar1, how I have to proceed to avoid for
> > example the duplicate primary key message?
>
> Proceed like this :
>
> procedure TForm1.IB_Query1BeforePost(IB_Dataset: TIB_Dataset);
> begin
> if IB_Dataset.State=dssInsert then begin
> // check your keys here, call Sysutils.Abort here if necessary
> end;
> end;
>
>
> Harald
>