Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in DEFINE CLASS x AS y OF ClassLib.PRG
Message
 
 
To
06/12/2001 12:36:18
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00589361
Message ID:
00590805
Views:
38
>>I am baffled. I do have a VFP7 app that is installed on a machine that has no developer version of VFP, no source code, just the APP and the VFP 7 runtime. This app has PRG based classes that use the DEFINE CLASS ... OF ClassName with absolutely no extensions. The app works. Now, I also have no VCX classes with a name the same as any of the PRG classes. There are no error messages in my ErrorLog table either. This is a Word automation app, and those classes are used to create the Word docs. This technique is working great. I do not know what else to say.
>
>Could be that the prg containing the class definition is cached in memory by something else being loaded from it in another place in your app...

Found it. I have a main PRG class where I instanciate a SESSION class when I launch the APP and this object persists for the life of the App. I then have a child class that is a subclass of this SESSION class where I use the OF clause. Since I have already instanciated an object of the parent class, instanciating anything in that child class always works even though I specify no extensions.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform