Inserting a line feed into a field

General TRichView support forum. Please post your questions here
Post Reply
dvk19
Posts: 3
Joined: Mon Apr 21, 2008 12:46 pm

Inserting a line feed into a field

Post by dvk19 »

Hi,

I have added Field Codes to a template and in my code to replace these fields I want to replace the text with mutliple lines.

For example - my field is called Address. When I replace this I want to replace it with many lines of address.

I am using RVData.SetItemText(i, GetFieldValue(FieldName));

GetFieldValue, returns a string (from lookup in the database) with those address lines as one string with the characters Chr(13) and Chr(10) to indicate a new line between. When I run this the 13 nad 10 are ignored and it all appears on one line.

So instead of

11 Anywhere Road
Any Street
AnyTown
PO19 9DE

I get

11 Anywhere RoadAny StreetAnyTownPO19 9DE

Please advise.
dvk19
Posts: 3
Joined: Mon Apr 21, 2008 12:46 pm

Post by dvk19 »

Please ignore this as I found the solution in one of you other examples.

Thanks,
Post Reply