[Lazarus] Converting all code to use UnicodeString

Howard Page-Clark hdpc at talktalk.net
Tue Sep 26 22:06:17 CEST 2017


On 26/09/17 20:51, Marcos Douglas B. Santos via Lazarus wrote:
> I understood that I can use like this:
> const
>    VALUE: string = 'áéíóú';
>
> Not like this:
> const
>    VALUE = 'áéíóú';
>
> Right?
> But this is not compile:
> const
>    V1: string = 'a';
>    V2: string = V1 + 'b';
You can't do that in a const declaration.
But in an implementation, the following does compile:

{$J+} {$H+}
const
   V1: string = 'a';
   V2: string = 'b';
   V3: String = '';

begin
   V3:=V1 + V2;
   WriteLn(V3);
end.


More information about the Lazarus mailing list