Hi Scott ---
Hmm...are you sure about that object name, RICHTEXT.RichTextCtrl.1?
OK, try this. Create a classlib or modify an existing classlib and subclass the RTF control. Change your AddObject code to instance from the subclass. See it it works now.
>oForm=createobj("form")
>oForm.show()
>oForm.addobject("rtf","RICHTEXT.RichtextCtrl.1")
>
>This gives this error: Object class is invalid for this container
>
>Why can't I add an the rich-text editor on the fly? i can do it in design mode.
>
>Any Ideas?
>
>tia
>
>scott
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05