Subject | Re: [IBO] dataSet Modified |
---|---|
Author | comesailing@btinternet.com |
Post date | 2001-08-07T12:59:08Z |
Thanks Helen !
I have now made a test... but it is rather complicated:
eg. For jj := 1 to myquery.fields.columncount do
if myquery.fields.column[jj].ismodified then
mymodifiedflag := true;
But what about an event, to test just after the user makes the entry?
Is there an event which will signal that a change has happened ?
myDataset.onModify ?? or something ?
regards
Dave
I have now made a test... but it is rather complicated:
eg. For jj := 1 to myquery.fields.columncount do
if myquery.fields.column[jj].ismodified then
mymodifiedflag := true;
But what about an event, to test just after the user makes the entry?
Is there an event which will signal that a change has happened ?
myDataset.onModify ?? or something ?
regards
Dave
--- In IBObjects@y..., Helen Borrie <helebor@d...> wrote:
> At 12:40 PM 07-08-01 +0100, you wrote:
> >Help Please.
> >
> >I have a temporary table with only one record. This is presented
to users on
> >a form via a tib_query connected to various tib_controls.
> >I want to know when and if the user modifies the record.
> >I thought I could use the 'Modified' property of a dataset to test
this. But
> >when I check it is always true.
> >
> >(after opening the query the dataset is modified by the program by
setting
> >one of the field values. So how can I clear this Modified flag)
> >
> >Or is there another way or an event which will tell me when a
dataset is
> >altered ?
>
> Consider the IsModified property of the TIB_Column or the
GetColumnValue('columnname') and GetColumnOldValue('columnname')
properties of TIB_Row.
>
> -- helen
>
> All for Open and Open for All
> InterBase Developer Initiative ยท http://www.interbase2000.org
> _______________________________________________________