[lazarus] End of line portability

Peter Vreman peter at freepascal.org
Fri Aug 30 08:36:44 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?

In the development compiler the constant LineEnding is defined for this. In the stable
1.0.6 release there is no such define yet.










More information about the Lazarus mailing list