Yep. I just created an application builder for Codebook that uses this principle. The method you are looking for is the .SaveAsClass() method ... a member method of VFP objects. To do this, first programmatically instantiate an object from the superclass class definition. Next, populate any of the properties you want ... programmatically. Next, call the .SaveAsClass() method for the instantiated object. Identify the name of the new class definition and the name of the .VCX where the new class definition should be stored. If you walk through each class in the class library you wish to duplicate in this fashion, you'll accomplish your goal.
Here is the signature for the SaveAsClass() method ...
Object.SaveAsClass(ClassLibName, ClassName [, Description])
Have a nice one,
CT
>Is there a way to subclass an entire library (.vcx), that is all classes in the .vcx subclassed into another library? I want a quick way to take my base class library and create an application specific library based on the base class library.
>
>Thanks!
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only