Subject Re: No Reply... Second try... Fw: [IBO] TIBOQuery.Edit would must to call always AfterPost with Next call
Author Geoff Worboys
> When I put TIBOQuery in dsEdit state with Edit call by example, I
> understand that if I do TIBOQuery.Next the AfterPost by example
> would must to be called although I haven't changes in the fields.
> The example is simple, a master detail relation and when the detail
> is edited the master is forced to edit state and in the master
> AfterPost I call to commitretaining, now I lose the changes.

I am not sure that I understand what you mean about "lose the
changes". How are you losing changes?

If you want to prevent posts when the row is not changed, you need to
check the Modified property of the dataset. You may be able to
achieve what you want in the BeforeScroll event, by checking if
the dataset is Modified and calling Post or Cancel as required.

hth

--
Geoff Worboys
Telesis Computing