FFrank
asked on
Compile Delphi1-program with Delphi2
I programmed in Delphi1. Now I have to make some corrections. But I could not go so far, because the programm doesn't run in Delphi2.
In the program, I create a file to save some integers and also some strings, and exactly this is the problem. Delphi1 uses only strings with a maximum length of 255 characters. Delphi2 uses also long strings. My solution to this problem is to use only shortstrings, but I do not know how to write this in my source code.
If you know how to do this or you know how to solve my problem in any other way please write, it's urgent.
In the program, I create a file to save some integers and also some strings, and exactly this is the problem. Delphi1 uses only strings with a maximum length of 255 characters. Delphi2 uses also long strings. My solution to this problem is to use only shortstrings, but I do not know how to write this in my source code.
If you know how to do this or you know how to solve my problem in any other way please write, it's urgent.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Replace all "string" types by "shortstring"
Can't you define those as shortstring in your "var"-declaration?