>_cliptext = Thisform.oRtf.OBJECT.SelText
>Thisform.oRtf.OBJECT.SelText = ""
>>
>>I thought this was an easy task: I have a richtext RTF control on the form, and a button that is supposed to >work as "Cut".
>>
>>I tried
>KEYBOARD '{TAB}'
>>KEYBOARD '{Ctrl+x}'
>>but this does not do anything with the control.
>>
>>I also trid to check for olecontrol.SelStart and oleControl.SelLength and to concatenate the strings >>together, but the text formatting makes this very complicated.
>>
>>Any ideas?
thisform.oRTF.SelText
returns the text selected (nonformatted)
thisform.oRTF.SetRTF
returns the text selected in RTF format