[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

By default, the TStrings.TextLineBreakStyle is platform dependent, as
mentioned in

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?.

Leonardo M. Ramé

More information about the Lazarus mailing list