Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing Entire Library
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00170168
Message ID:
00174286
Views:
28
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
Map
View

Click here to load this message in the networking platform