Page 1 of 1

How to Insert CR LF when writing to TRichView

Posted: Thu May 15, 2008 5:57 pm
by JLuckey
I want to start a new line when writing to a TRichViewEdit but this code

RichViewEditIn.InsertText('This is line 1', False);
RichViewEditIn.InsertText('This is line 2', False);

produces:

This is line 1 This is line 2

What I want is:

This is line 1
This is line 2

Which method on TRichViewEdit allows me to do this?

Thanks

Posted: Thu May 15, 2008 6:48 pm
by Sergey Tkachenko
RichViewEditIn.InsertText('This is line 1'#13'This is line 2', False);