Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DEFINE CLASS x AS y FROM My.PRG
Message
De
10/10/2000 11:35:06
 
 
À
09/10/2000 11:01:21
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00426810
Message ID:
00427324
Vues:
14
>However, with PRG based classes the only way we can specify a parent class is to SET PROCEDURE TO ParentClass.PRG. Why can't we have syntax that allows the PRG based Class to know where to look for its parent? Example:
>Test102.PRG
>DEFINE CLASS Concrete AS Abstract FROM Test101.PRG
> PROCEDURE SomethingElse(x)
> ENDPROC
>ENDDEFINE
>What I'm proposing is that PRG based classes work exactly like VCX based ones. Each class definition needs to know where its parents are.

It's in VFP 7. You can do it this way.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform