Thanks Tracy but I need to have the code in the text before using the text
to rtf method. I got over it by creating a file in rtf and loading it in the
control
Al

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Tracy Pearson


Allen,

   oForm = CREATEOBJECT("form")
   oForm.AddObject("rtf", "olecontrol", "richtext.richtextctrl")
   oForm.rtf.visible = .T.
   oForm.rtf.height = 100
   oForm.rtf.width = 200
   oForm.rtf.text = "Hello FoxGang!"
   oForm.rtf.selstart = 6
   oForm.rtf.sellength = 3
   oForm.rtf.selcolor = RGB(255,0,0)
   oForm.rtf.selstart = 100 
   oForm.rtf.sellength = 0
   oForm.show(1)

Tracy Pearson
PowerChurch Software




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/000c01cb6ae0$d9fd0f10$8df72d...@com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to