>>
>>x=createobject("yourclass")
>>x.saveasclass("classname","classlib")
>>release x
>
>
>Try CREATE CLASS [class] OF [classlib] FROM [parentclass]
>
>This will create a new subclass and open the class designer for it.
Sure, but the original poster insisted on _not_ opening the class designer. Interesting problem, though, because every time I do something interactively in VFP, I wonder if it may be done programmatically, too. This GUI world is getting more and more clickable, and less automatizable, when it comes to automation of _our_ work. Mmmmm... maybe you may know - how to add a new method to a class or form programmatically, from a builder or a wizard, without going to the .scx/.vcx and messing with methods and reserved4 memo fields (or was it 3, I'm bad at remembering names)? There's a dialog in the menu of the form/class designer which does it.