Subject | Re: [IBO] dataSet Modified |
---|---|
Author | Helen Borrie |
Post date | 2001-08-07T13:21:26Z |
At 12:59 PM 07-08-01 +0000, you wrote:
Try
..
MyModifiedFlag := False;
with myquery do
begin
for jj:= 0 to columncount - 1 do // should be zero-based..??
if fields[i].IsModified then
if fields[jj].Name <>'TheOneTheAppModified' then // didn't you mention this?
begin
MyModifedFlag := True;
break;
end;
end;
-- helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________
>Thanks Helen !Does this work?
>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;
Try
..
MyModifiedFlag := False;
with myquery do
begin
for jj:= 0 to columncount - 1 do // should be zero-based..??
if fields[i].IsModified then
if fields[jj].Name <>'TheOneTheAppModified' then // didn't you mention this?
begin
MyModifedFlag := True;
break;
end;
end;
>But what about an event, to test just after the user makes the entry?TIB_Row has BeforeModify and AfterModify. IB_Dataset.Fields[] is a TIB_Row. The events pass the IB_Column as a parameter.
>Is there an event which will signal that a change has happened ?
>myDataset.onModify ?? or something ?
-- helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________