Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#include with HOME()
Message
From
21/11/2005 21:01:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
21/11/2005 18:23:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01070983
Message ID:
01071018
Views:
38
>I am trying to include the following line in the load method of a form.
>
>#include HOME(1) + 'foxpro.h'
>
>When I try to save the form I get "File does not exist" error message but when I hard code the path I don't get the error.
>
>Any ideas why?
>
>Thanks!

#define and #include require expressions that can be evaluated at compile-time. I suppose that the compiler expects home() to be evaluted at run-time, like many other functions.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform