What specific problem are you having? You should be able to something like this:
SET CLASSLIB TO MyClasslib
cName="txtName"
cClass="MyTextboxClass"
ThisForm.AddObject(cName, cClass)
>How can I make the AddObject function accept a variable for the object name?
------------------------------------------------
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