tags:

views:

152

answers:

1

In Delphi 2010,

if Field.OldValue <> Field.Value then
...

raises the Exception:

raised exception class EVariantTypeCastError with message 'Could not convert variant of type (Array Byte) into type (Integer)'.

How can I know if a TBlobField value has changed?

+1  A: 

I solved the problem with

if Field is TBlobField then
  Result := TBlobField(Field).Modified
Tiago Moraes