Hey Fred ---
I give up. Use the ugly way :-)
>>
>>Ta da!!! This is the best way to do it.......
>>
>>
>>LPARAMETERS cOldLib,cOldClass,cNewLib,cNewClass
>>SET CLASSLIB TO &cOldLib
>>oObject=CREATEOBJECT("&cOldClass.")
>>oObject.SaveAsClass("&cNewLib","&cNewClass")
>>SET CLASSLIB TO
>>RETURN
>>
>
>
>Almost, but not quite! This forces the object to go thru it's INIT code. If you have any way to stop that, this would be the best way!
------------------------------------------------
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