Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sub-Classing a PRG-based Class
Message
De
27/05/2002 17:35:31
 
 
À
27/05/2002 16:26:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00661784
Message ID:
00661795
Vues:
19
>What's the best way to sub-class a PRG based class?
>
>I presume that I can "#INCLUDE < parent.prg >" in each sub-class.prg (so I get the inheritance), but then how do I get the sub-class.prg to re-compile when I edit the parent.prg?
>
>Specifically, if I create a class based on the SESSION object, how can I then sub-class it to get all the inheritance from the main class?

I just discovered that I CAN'T "#INCLUDE < parent.prg >" in a sub-class.prg because only #DEFINE statements are recognized in a #INCLUDEd file.

Is there some way to get a PRG-based class into SET CLASSLIB?
Bill Morris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform