Subject Re: [firebird-support] Re: Storing Delphi 2009 "UnicodeString" into database, UTF8?
Author Stefan Heymann
>> Is there a substring function in Delphi 2009 that would return the
>> "R"? There seems to be a System::UnicodeString method named SubString,
>> but I can't call it.

> It is not a function, it's the method of UnicodeString object.

> So in C++
> UnicodeString s = "alenka";

> s = s.SubString(1, 3);

And in Delphi? I tried

var
U, S : UnicodeString;
begin
U := 'DÄR';
S := U.SubString (U, 3, 1);

but Delphi doesn't treat U as something that has methods.

Regards

Stefan