Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using an include file
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00243657
Message ID:
00243919
Views:
24
Roi,

FWIW, I use a project .h file which #includes foxpro.h as well as any other #defines the project needs. For forms where the constants are used I just include the file using Form/Include menu, It's really not that much work.

For each classlib I have a classlib.h that is similarly constructed #include foxpro.h and all #defines used for all classes stored in that classlib.

>Got it. Options 1 and 2 seem rather involved. I think I'll go with 3.
>
>Thanks.
>>
>>3 ways:
>>
>>1. In every PRG and every snippet [method, etc.], you have to include the command #INCLUDE MY_H_FILE.H
>>
>>2. If using VFP 6, use the _Include system variable to specify which default include file to use when compiling. In your baseform class, you need to click on menu pad FORM, then click the Include option to specify the file name and location. Have to do this for classes as well.
>>
>>3. Add your DEFINEs to the FoxPro.H file, and use the FoxPro.H file for your default. [my preference]
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform