Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#INCLUDE FoxPro.h not working
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00483866
Message ID:
00483867
Vues:
6
>Hi, I am new to using #INCLUDE files. I am mucking around with FoxPro.h, it is #INCLUDEd at the top of my main program, but when I try using in my main application class ( for example COLOR_WHITE ) it tells me the variable can not be found, as if the file has not been included.
>
>Thanks in advance
>
>Craig,

I generally do not directly include the foxpro.h file in my PRGs, classes, etc. For each of my projects, I have a DEFAULT.H file where I place app constants. The first line of that file has #INCLUDE D:\path_to_vfp_home\FoxPro.h

Look under Tools, Options and set your default include file there. In your classes, you can also set what you want the default include file to be. When you edit a class, look under Class, Include File and make sure that path is correct.

By having your own constants file, you will be better off especially when you migrate to a new version of VFP or if the VFP HOME() ever changes.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform