In Delphi 2010 (and probably in D2009 as well), the default row type is UnicodeString.
However, if we announce ...
const
s :string = 'Test';
ss :string[4] = 'Test';
... then the first line of s , if declared as a UnicodeString , but the second line of ss is declared as AnsiString !
We can check this: SizeOf(s[1]);will return size 2 and SizeOf(ss[1]); will return size 1.
If I announce ...
var
s :string;
ss :string[4];
... than I want ss to also be a UnicodeString type.
- How can I tell Delphi 2010 that both strings should be UnicodeString types?
- , ss WideChars?
WideString[4] UnicodeString[4]. - : ?