Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in DEFINE CLASS x AS y OF ClassLib.PRG
Message
From
04/12/2001 12:35:26
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Bug in DEFINE CLASS x AS y OF ClassLib.PRG
Miscellaneous
Thread ID:
00589361
Message ID:
00589361
Views:
97
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
Next
Reply
Map
View

Click here to load this message in the networking platform