When I'm using them command NewValue for verify the OldValue for the Field, the returned value from NewValue it's different of write.
Example, in a table PARCELAS exists a record with this fields:
If I want to verify, on a event TDBGrid.OnColExit if the new value (wrote) for the Field VENCIMENTO was different from OldValue (from the record)
Code: Select all
If (Table1.FieldByName('Vencimento').NewValue<>Table1.FieldByName('Vencimento').OldValue) Then