Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug in DEFINE CLASS x AS y OF ClassLib.PRG
Message
De
04/12/2001 12:35:26
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Bug in DEFINE CLASS x AS y OF ClassLib.PRG
Divers
Thread ID:
00589361
Message ID:
00589361
Vues:
98
I was eager to start using the new clause in VFP 7, "OF ClassLib" in PRG based classes. I went through much of the previously written PRG based classes, updating them like this:
DEFINE CLASS deSD AS deIDSD OF deSD.PRG
After doing this I could delete numerous SET PROCEDURE TO deSD.PRG ADDITIVE or similar statments. However, when I built an EXE, the parent classes weren't found. (Well, they were found when there was a path to them, but that doesn't count. They were in the EXE for heaven's sake!) After building a simple test exe and verifying that it was in fact a bug, I changed the syntax to DEFINE CLASS deSD AS deIDSD OF deSD.FXP and that worked. So at least until service pack 1 :-), you must use the FXP extension, not .PRG to show the lineage of your classes.
Charlie
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform