Page 1 of 1

Inserting a line feed into a field

Posted: Thu Apr 24, 2008 1:27 pm
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.

Posted: Thu Apr 24, 2008 2:28 pm
by dvk19
Please ignore this as I found the solution in one of you other examples.

Thanks,