[lazarus] End of line portability

Michal Bukovjan bukovjan at mbox.dkm.cz
Fri Aug 30 08:25:49 EDT 2002


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?


Michal






More information about the Lazarus mailing list