Hi Cyril,
I would add a flag to a record to specify a format of the memo (RTF or plain text) and process them accordingly. Also, you can extract plain text from RTF control through SelText property.
>Hi Sergey
>
>Q1: Is
REPLACE rtf.Source WITH THISFORM.oleRTF.TextRTF
also unnecessary?
>
>Q2: Also, I want to give the user a choice of using RTF or plain text.
>
>I have a memo field and an RTF control on the page, and in the init() of the form I make one of them visible depending upon a setting in a setup file.
>
>However, that does not work too well. If we use the memo file, we end up with RTF in the memo file. Probably because the control source for both the editbox and the RTF control are set to the same memo field.
>
>Is it possible to tell the RTF control to edit plain text like a memo field? Alternatively, should I have two forms, or is there a way to have both on the same form?
>
--sb--