I am migrating a delphi 7 application to delphi XE4. In Delphi 7, some variables are declared like this:
var abc : string[80];
While migrating this code, I am changing above code declaration as
var abc : string;
As per my understanding, string[80] is ansistring and string is unicode. So, is it right way to do it?
I am following the below link from stackoverflow:
ShortStringwhich is a single byte char type. I'd say for your application will be better to have all the strings in the Unicode form rather than ANSI, so if I were you, I'd usearray[0..79] of Charor juststring. - TLama