How to Insert CR LF when writing to TRichView

General TRichView support forum. Please post your questions here
Post Reply
JLuckey
Posts: 12
Joined: Thu Feb 23, 2006 12:22 am

How to Insert CR LF when writing to TRichView

Post 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
Sergey Tkachenko
Site Admin
Posts: 17522
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

RichViewEditIn.InsertText('This is line 1'#13'This is line 2', False);
Post Reply