Is there a way to make TMemo start a new line with linefeeds only? lazarus / 31-LCL ---------------------------------------------------------------------- vfclists · 2010-04-16 00:16 Is there a way to make TMemo start a new line with linefeeds only? When I get some info from a web server into a TMemo with linefeeds all the lines a strung together. Does TMemo have a setting to cause the lines to break properly? ---------------------------------------------------------------------- typo · 2010-04-16 00:29 TMemo, AFAIK, is a Windows control. I think you should handle your text before entering in a TMemo to add #13#10 properly. ---------------------------------------------------------------------- eny · 2010-04-16 07:01 Maybe you can use: Code: [Select]YourTMemo.Text := StringReplace(YourTextVar,#10,#13#10,[rfReplaceAll]); ---------------------------------------------------------------------- Bart · 2010-04-16 12:26 AdjustLineBreaks ? ---------------------------------------------------------------------- vfclists · 2010-04-16 18:07 Is that a runtime property? It is not showing in the object inspector. Perhaps I you are a few versions ahead of me? Quote from: Bart on April 16, 2010, 02:26:26 pmAdjustLineBreaks ? ---------------------------------------------------------------------- typo · 2010-04-16 19:20 Code: [Select]AdjustLineBreaks(YourString); ---------------------------------------------------------------------- mas steindorff · 2010-04-16 19:41 Did you try setting the "TStrings.Delimiter" or "TStrings.DelimitedText" propertyto #10? I have not tried this in lazarus yet so just wadering if it works http://www.freepascal.org/docs- html/rtl/classes/tstrings.delimitedtext.html