[lazarus] End of line portability

Michael Van Canneyt michael.vancanneyt at wisa.be
Fri Aug 30 08:41:15 EDT 2002




On Fri, 30 Aug 2002, Peter Vreman 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?
>
> In the development compiler the constant LineEnding is defined for this. In the stable
> 1.0.6 release there is no such define yet.

This is not correct. I copied the code from the fixbranch.
So it definitely exists in both branches.

Michael.






More information about the Lazarus mailing list