Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Include problems
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00391672
Message ID:
00391825
Views:
8
Roi uis right about the HOME(). This is a VFP function. Because the search and replace is done at compile time, no functions can be included in a # directive (AFAIK).

The _INCLUDE is a fair (not good or great) idea. It saves you, the developer, the trouble of going to the menu and selecting Include File for each new form or class. However, it is not retroactive (which bugs the hell out of me).

>I've just done a little testing and found that foxpro.h is not being included. My application.h (at the moment) just has #include home()+"foxpro.h" - if I include that in the form class it works but including my application.h does not work. My plan was to have application.h include foxpro.h and then I can add application-specific defines in application.h so it becomes generic.
>
>Looks like I'll have to rethink. This is sickening - in C it can be done no problem.
>
>I'd hoped that #include at the top of main.prg would include it. That's when I changed it to _include to no avail.
>
>>
>>Nigel,
>>The above won't work because remeber the _INCLUDE file contains compiler constants that are not replaced on the fly (as this technique would indicate).
>>
>>As Roi said, you have to add the file to every form, menu, class library and PRG. I have a utility that will do it for all but the PRGs. I could post it here or send it to you, if you're interested.
>>
>>Let me know.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform