Subject Re: [IBO] Update records in buffer in IB_Query
Author Helen Borrie
At 07:59 AM 29/01/2006, you wrote:
>Hi All,
>
>In Help of IBO, it is written that the method IB_Query.InvalidateRowNum
>() and IB_Query.InvalidateBookMark should work updating some data
>aware components when executed (TIBGrid and others), but it is not
>that this happening,

This is not quite a correct interpretation. After committing the
change, the Invalidate... methods set a flag so that, *next time*
that record is accessed, IBO will know that it must re-fetch that
record from the database into the buffer (or, in the case of an
Insert, it must fetch the new record and add it to the buffer).

>after leaving IBO 3.6i for 4.5ai began to give
>problem, the components TIB_Edit not more updated. What can be
>happening? The InvalidateRowNum and InvalidateBookMark method changed
>behavior?

Not that I recall -- although it is a VERY long time since I looked
at IBO 3.6, to know what might have changed. You may read the
release notes that were distributed with 4.5Ai, to check up for
yourself whether there is something introduced in IBO 4 that might
impact on the behaviour of your old code.

You probably need to look at the CommitAction setting of your
dataset. As an experiment, you could drop a TIB_Query into your form
and inspect the default setting of CommitAction; and then compare it
with the setting that was imported by IBO4 into your old project's datasets.

What version and edition of Delphi are you using?

Helen