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:
00244089
Views:
20
That makes sense. I was thinking I would use 2 .h files. A common.h which #define constants that you would always use, things like CrLf and Tab, etc. and a project specific one. I could then have a form.h, and #include those 2 in it.

Thanks for the tip.

>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]
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Previous
Reply
Map
View

Click here to load this message in the networking platform