Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing Entire Library
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00170168
Message ID:
00174286
Vues:
30
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!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform