Hi Sergey,
Sorry it took so long to reply, but your solution was excellant! Thank you so much for *all* the great work you do on UT and for helping me here!
Cheers!
Rob
>Hi Rob,
>
>You can use RTF control to merge two RTF documents. Something like this
>...
>* Append second
>Thisform.oRtf.oBJECT.SelStart = LEN(Thisform.oRtf.oBJECT.Text)
>Thisform.oRtf.oBJECT.SelLength = 0
>Thisform.oRtf.oBJECT.SelRtf = mytable.mymemo2
>...
>
Check also
Functions for RTF-files JOIN File #
9971>
>>I've been fighting with this all day and reading a number of threads here, but I can't find this issue addressed anywhere. If anyone has any ideas I'd greatly appreciate it:
>>
>>The bottomline:
>>
>>How do you append text from an RTF control into a memo that already has existing formatted text without losing formatting?
>>
>>I have a form that has an RTF Ole control that's bound to a memo field of a table. Users can view notes here. A click on a command button takes them to another screen where they can enter notes, then those notes need to get added to the existing notes and control returns to the the initial form.
>>
>>If I try:
>>
>>REPLACE MyMemo WITH MyMemo + this.olectrl.textRTF
>>
>>
>>It won't display correctly because the initial control characters for the RTF are in the memo field twice.
>>
>>If I try:
>>
>>REPLACE MyMemo WITH MyMemo + this.olectrl.text
>>
>>
>>I of course lose the formatting of this.olectrl.
>>
>>I've tried a number of different ways to merge the existing RTF code, but I cannot figure it out.