Subject Re: [IBO] Problem with Append in a IBOTable
Author Helen Borrie
At 12:34 PM 28-08-01 +0000, you wrote:
>Hi
>I have a big problem with Append in a IBOTable
>I use IBO 3.6 Dg (demo) because I would like convert my application
>from DBF to IBO.
>I use IBOTable with PessimisticLock = TRUE and I have this problem:
>
> IboTable1.PessimisticLock := TRUE;

Try including this:

iboTable1.InternalDataset.RefreshAction := raKeepRowNum;

> IboTable1.Open;
> IboTable1.IndexName := 'COD';
> IboTable1.Append;
> IboTable1.FieldByName('COD').AsString := '100';
> IboTable1.Post;
> ShowMessage(IboTable1.FieldByName('COD').AsString) --> 100
> IboTable1.Refresh;
> ShowMessage(IboTable1.FieldByName('COD').AsString) --> 1

Cheers,
Helen

All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________