Link to home
Start Free TrialLog in
Avatar of FFrank
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.
Avatar of Batalf
Batalf
Flag of United States of America image

Are there a lot of stringvalues?

Can't you define those as shortstring in your "var"-declaration?
ASKER CERTIFIED SOLUTION
Avatar of Batalf
Batalf
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of leon321
leon321

Replace all "string" types by "shortstring"