Thank you for the quick reply. I dabbled with it based on your suggestion and have found the following works:
step 1. Create form
add control either through the toolbox or create a class based on oleobject(not bound oleobject).
Drop it onto the form.
Size to your needs and then set anchor property to 15.
in the init event of the form code window put this:
SELECT mytableLOCATE for(whatever condition)thisform.txtcontrol1.OBJECT.TextFormat='RTF-nobinary'STORE ALLTRIM(mytable.fieldname) TO mystring1thisform.txtcontrol1.object.setText(1,mystring1,'RTF-nobinary',.f.)
Next step is to control the saving function there are two places to put this code. I would suggest both
in the destroy event :
SELECT mytable
mystring= thisform.txTCONTROL1.object.getText(1,'RTF-nobinary',.f.)
replace mytable.fieldname WITH mystring IN mytable
In the Deactivate event (if desired)same code as above
You may want to check for changes and ask if you want to save changes prior to saving.
Please note that some activex methods and properties when substantiated in VFP will not behave if you omit the .object reference. I have noticed this in other activex controls that I use on a regular basis.
I hope this helps any other VFP programmers who are considering using this awesome tool.