Subject | Re: [IBO] TIB_DataSource.OnDataChange |
---|---|
Author | Helen Borrie |
Post date | 2001-02-08T00:24:45Z |
At 12:15 AM 08-02-01 +0100, you wrote:
variable called Field each time there is a data change in a row (note any
change, not just a modification).
datachange event.
the datasets.
Regards,
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________
>Hi list.Why do you think Field = nil? The OnDataChange event passes a TIB_Column
>
>I'm getting AV when using
>
>if (Field.FieldName = 'XX') then begin ...
>
>in OnDataChange because Field = nil.
variable called Field each time there is a data change in a row (note any
change, not just a modification).
>Is there any way to know which particular field that is changed andDon't go this route - you are looking for a modified column in a row, not a
>triggering the event?
datachange event.
>When field XX is changed I wan't to update SQLWhere to filter aUse the AfterPost event; or, better still, use DMLCaching to synchronize
>"lookup"-Query that is connected with keysource to another query.
the datasets.
>Maybe one should use params instead? If so, is there any difference inDifference in performance from what? Params are used everywhere...
>performance?
Regards,
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________