Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug in DEFINE CLASS x AS y OF ClassLib.PRG
Message
 
 
À
04/12/2001 12:35:26
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00589361
Message ID:
00589555
Vues:
45
I just do not include the file extension and all works just fine. The OF ClassLib is always a PRG/FXP based file.

>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.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform