FieldAsString D6 to DXE

clivew

Member²
I am not quite sure whether the following code will give me any problems with existing records as I move from Delphi6 to DelphiXE.
I store a checksum using

qryUpdate.SetVariable('CHECKVAL',anAnsiString);

in my database to make sure that a file system file has not changed.
This is the relevant retrieval snippet

var
MD5Str: AnsiString;
begin
if (MD5Str qryValidate.FieldAsString('IMG_CHECK_VAL')) then

I am not certain how DOA / DelphiXE will handle this conversion and comparison as there is no equivalent
FieldAsAnsiString that I could find.
 
Last edited:
There will be a conversion from AnsiString to String when comparing the 2 values. I think this will work fine.
 
Back
Top