"#13#10" or (only) "#13"

General TRichView support forum. Please post your questions here
Post Reply
j&b
Posts: 184
Joined: Mon Sep 05, 2005 1:35 pm

"#13#10" or (only) "#13"

Post by j&b »

Hello,

I often see both spellings "#13#10" and (only) "#13" ?
What is correct when using RichViewEdit ?

I know that "#13#10" represents a carriage-return and a line-feed combination.
But when do you use "#13#10" and when only "#13"

If I look at own created samples I don't see a difference. Doesn't it matter how I use / combine # 13 and # 10 ?

On Internet I get no clear statements how to use. Is it a matter of taste ?
I think it's important for Replace (#13#10 or #13).



Sergey write " RichViewEditIn.InsertText('This is line 1'#13'This is line 2', False); "

and

...
const crlf = #13#10;
...
RichView1.AddTextNL('"Bullets" are the images from ImageLists. '+crlf+
'"Bullets" provide an efficient way to store graphics in RichView, '+...
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

First, in trichview itself, these characters are not stored. They are converted to internal flag "this item starts a paragraph".

As for using them in methods like InsertText or AddTextNL, it does not matter. TRichView understands line breaks defined as #13, or as #10, or as #13#10, or as #10#13.
Post Reply