[lazarus] End of line portability

Florian Klaempfl Florian.Klaempfl at gmx.de
Fri Aug 30 08:33:09 EDT 2002


At 14:28 30.08.2002 +0200, you wrote:
>Hi,
>
>is there any constant defined in FCL that would represent platform 
>dependent end of line?
>
>I am think about something like this:
>
>{$IFDEF WIN32}
>const CRLF = #13#10;
>{$ELSE}
>const CRLF = #13;
>{$ENDIF}
>
>so that I can write things like this:
>
>lblMultiline.Text:= 'My first line' + CRLF + 'My second line';
>
>... and have it correctly compiled on all platforms. If not, would FCL 
>team consider adding one?

LineEnding or sLinebreak in the system unit. sLinebreak is the Kylix 
compatible name.






More information about the Lazarus mailing list