[Lazarus] strcat problem

Howard Page-Clark hdpc at talktalk.net
Sat Jun 25 14:39:34 CEST 2016


On 25/06/16 12:38, Koenraad Lelong wrote:
> Op 25-06-16 om 00:59 schreef David W Noon:
>>
>>    const
>>       TEXT : ansistring =
>>          #10'Now is the winter of our discontent'#10
>>          'Made glorious summer by this sun of York;'#10
>  Fatal: Syntax error, ";" expected but "const string" found
>>          'And all the clouds that lour''d upon our house'#10
> ...
>
> Does not compile. Or do I need some compiler-switch ?

No, you need concatenation operators inserted:

const
      TEXT : ansistring =
         #10'Now is the winter of our discontent'#10
         +'Made glorious summer by this sun of York;'#10
         +'And all the clouds that lour''d upon our house'#10
         +'In the deep bosom of the ocean buried.'#10
         + etc...




More information about the Lazarus mailing list