Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing parent class
Message
De
11/10/1998 22:25:05
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00145774
Message ID:
00145801
Vues:
38
Michel,
I was reading up on using the foundation classes and came across the passage:

Instead of changing _base.vcx, however, you should redefine the classes in _base.vcx to inherit their behavior from your own custom base classes ... You can use the Class Browser to redefine the parent class for a particular class.

And as David pointed out, it actually works! Trying to incorporate the foundation classes into an existing app would be a nightmare without being able to redefine.


Bob

>Are you sure you've read that correctly ? You can certainly move a
class from one class library to another quite easily, but changing
the parent class I do not think so. Imagine : changing a command button
class to have "FORM" as its parent class instead .... What nightmare !!!
>
>Michel.
>===================== Original message follows ====================
>>The VFP Docs indicate there is a simple way to change the parent class of a component from the class browser. How can I accomplish this without editing the VCX?
>>
>>Bob
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform