Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug in DEFINE CLASS x AS y OF ClassLib.PRG
Message
 
 
À
05/12/2001 15:23:05
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:
00590610
Vues:
36
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.

>Hi Jim,
>Thanks for your demo. I should undoubtably be using the TEXT TO command more! Your code helped me realize that Mark wasn't right after all. :-)
>If I build an EXE and put no extenstion, the classlib is not found and the exe fails to run. If I use the FXP extension, the EXE runs fine. However, if I erase my FXPs in developement mode (as I do because I never want stale FXPs around with VSS and SOS), my DO FORM xyz fails because certain ClassLibs aren't automatically compiled. So the solution is to ensure my developement mode not only erases the FXPs, but recompiles the PRGs so I always have good FXPs around. Also, one must use the FXP or VCX extension in the OF clause.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform