Subject | Re: No Reply... Second try... Fw: [IBO] TIBOQuery.Edit would must to call always AfterPost with Next call |
---|---|
Author | Geoff Worboys |
Post date | 2001-12-23T00:25:31Z |
> When I put TIBOQuery in dsEdit state with Edit call by example, II am not sure that I understand what you mean about "lose the
> 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.
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