Check if data has been modified

Check if data has been modified

Postby Hans » Fri 28 Oct 2005 12:34

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
Hans
 
Posts: 52
Joined: Wed 24 Aug 2005 20:05

Postby alec » Mon 31 Oct 2005 11:58

BeforeScroll event occur AFTER dataset post/cancel changes
alec
 
Posts: 20
Joined: Wed 24 Aug 2005 09:28
Location: Africa

Postby Ikar » Mon 31 Oct 2005 15:09

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.
Ikar
 
Posts: 1693
Joined: Thu 28 Oct 2004 13:56


Return to MySQL Data Access Components