Page 1 of 1

Check if data has been modified

Posted: Fri 28 Oct 2005 12:34
by Hans
Hi,

I try to discover if the current record has been modified, before the user scrolls to the next record.

It seams, that in the OnBeforeScroll Event the DataSet.Modified flag is always false. Even if I made changes. Does anyone know if this is a bug?

best regards,
Hans

Posted: Mon 31 Oct 2005 11:58
by alec
BeforeScroll event occur AFTER dataset post/cancel changes

Posted: Mon 31 Oct 2005 15:09
by Ikar
It's quite difficult to say briefly. Use VarEqual(Field.OldValue, Field.NewValue) for determination, but keep in mind special cases with TBlobField, TBytesField, TLargeIntField and TVariantField.