Re: [Lazarus] SynEdit - Why a new line added at the end of the text?
On 22/07/2019 20:18, Gabor Boros via lazarus wrote:
> Hi All,
> procedure TForm1.Button1Click(Sender: TObject);
> For me the above code show the next message:
> Any idea why a new line added? With TMemo the result: *abc*
> I use fixes_2_0 with FPC fixes_3_2 on Windows 64bit.
SynEdit stores the text as one string per line. And it does not
currently store the line-endings. When you retrieve the entire text as
one string, each line is ended by a line-ending.