An application from Delphi 1 (16 bit) has been transfered into Delphi 2007.
The Delphi 1 program has created files with the following type definition:
type
codePost = record
code : integer; {code 3 figures}
value : longint; {value 6 figures}
data : string; {Data max 30 chrs}
date : string; {}
FFnow : boolean; {FF is in progress}
end;
var
post : codePost;
f : file of codePost;
To make the Delphi 2007 version run I had to change my type definition. When new program tries to read the old files it has no success.
In Delphi 2007 the type definition is:
type
codePost = record
code : smallint; {code 3 figures}
value : longint; {value 6 figures}
data : string[30]; {Data max 30 chrs}
date : string[10]; {}
FFnow : boolean; {FF is in progress}
end;
var
post : codePost;
f : file of codePost;
I have tried to change the type declaration in different ways, but the best I managed was to get code shown correctly, value too many digits and data shown without first character (type: code:smallint; value:integer). Then the rest are wrong, as of course all subsequent records.
Does anybody have a knowledge about how I can change my type definitions to make this fit?