RE: Writing to richtext field Brent Henry 13.Jan.09 11:28 AM a Web browser Domino Designer 6.5.6; 6.5.5 FP3; 6.5.5 FP2; 6.5.5 FP1; 6.5.5; 6.5.4 FP3; 6.5.4 FP2; 6.5.4 FP1; 6.5.4; 6.5.3 FP2; 6.5.3 FP1; 6.5.3; 6.5.2 FP1; 6.5.2; 6.5.1; 6.5Windows XP
A couple of things to try...
Try adding a New statement on the Dim for uidocnew as in;
Dim UidocNew As New NotesUIDocument.
I think that may be the source of the object error.
wrt the FieldSetText approach try using a combination of carriage-return & linefeed as in; chr$(13) + chr$(10)
I have used the FieldSetText and FieldAppendText method in the past and was able to add multi-megabytes of data to the field, all with proper line breaks. I used the NotesStream object rather than a string variable. The NotesStream WriteText method has a parameter for the end-of-line character (EOL_PLATFORM).