Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#INCLUDE - VFP Preprocessor file
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00863051
Message ID:
00863053
Views:
22
>In one program I run for a Northern California company, I use the #INCLUDE directive to include a file called CONSTANTS.H, which contains only one constant,
>
>#DEFINE CRLF CHR(13) + CHR(10)
>
>
>When I use this same code in my same client, but for another location here in Southern California, and when the code begins to execute the CRLF Constant, the program does not know how to interpret what CRLF is. The code in both places is separate and sligthtly different.

For preprocessor directives, the inclusion actually occurs at compile time, not run time; so, given that the code is slightly different, I'd check the code for the app that doesn't work for these two usual suspects:
-- the .h file is available in the directory or PATH setting when the exe is compiled
-- the necessary programs/classes have #include'd the .h file appropriately. [my typical gremlin]

HTH
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform