[Lazarus] Setting TextLineBreakStyle in TMemo
Leonardo M. Ramé
l.rame at griensu.com
Thu Nov 28 16:25:43 CET 2013
Hi, I need to save the contents of a TMemo to a text file with CRLF line
endings.
By default, the TStrings.TextLineBreakStyle is platform dependent, as
mentioned in
http://www.freepascal.org/docs-html/rtl/classes/tstrings.textlinebreakstyle.html:
On FormCreate, I'm setting myMemo.Lines.TextLineBreakStyle := tlbsCRLF,
also my program adds lines to the TMemo using myMemo.Lines.Add(text).
But, when I do myMemo.Lines.SaveToFile(...) the result is an LF (unix)
text file.
Does anyone what I'm doing wrong?.
Regards,
--
Leonardo M. Ramé
http://leonardorame.blogspot.com
More information about the Lazarus
mailing list