Adding text with linebreaks
Posted: Wed Aug 27, 2008 11:02 am
Hello, it seems troublesome to find the right settings for working with string that contain linebreaks.
Basically, I have a number of strings that I want to add to RichViewEdit, for example
string1 := #13#10 + 'text begins with linebreak'
string2 := 'text with ' + #13#10 + ' linebreak in the middle'
string3 := 'text ends with linebreak ' + #13#10
Naturally, I want precisely those linebreaks and nothing else. Also, I want that there are three items and I want to obtain their texts with the linebreak included. Is this possible? They need to be separate strings since they will be in different styles and different tags.
A related question: Is there a reason that there is not a variant of function AddTextNLW that would accept a tag parameter?
Basically, I have a number of strings that I want to add to RichViewEdit, for example
string1 := #13#10 + 'text begins with linebreak'
string2 := 'text with ' + #13#10 + ' linebreak in the middle'
string3 := 'text ends with linebreak ' + #13#10
Naturally, I want precisely those linebreaks and nothing else. Also, I want that there are three items and I want to obtain their texts with the linebreak included. Is this possible? They need to be separate strings since they will be in different styles and different tags.
A related question: Is there a reason that there is not a variant of function AddTextNLW that would accept a tag parameter?