Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#INCLUDE FoxPro.h not working
Message
 
 
To
10/03/2001 22:35:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00483866
Message ID:
00483867
Views:
7
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform