Check if data has been modified

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Hans
Posts: 52
Joined: Wed 24 Aug 2005 20:05

Check if data has been modified

Post by 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

alec
Posts: 20
Joined: Wed 24 Aug 2005 09:28
Location: Africa

Post by alec » Mon 31 Oct 2005 11:58

BeforeScroll event occur AFTER dataset post/cancel changes

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by 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.

Post Reply