Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#Include
Message
From
26/11/2002 18:03:58
Guy Pardoe
Pardoe Development Corporation
Peterborough, New Hampshire, United States
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00727106
Message ID:
00727349
Views:
8
Hi Thomas,

You may have this mixed up with how C/C++ uses #INCLUDEs. In C/C++, using quotes versus angle brackets controls the order in which the compiler looks for the file. For instance, if you use quotes, I think it looks for the INCLUDE file in the current folder first, then along any other paths that are defined. If you use angle brackets, then it looks along the defined path first, without giving preference to the current folder. (I might have this backwards, but you get the idea.)

I don't think VFP makes such distinctions.

Guy



>I have seen code for #INCLUDE statements that either use or not use quotation marks around the file name, such as:
>
>#INCLUDE "..\THISFILE.H"
>
>OR
>
>#INCLUDE ..\THATFILE.H
>
>I may be wrong, but I believe the difference between the two is that when quotation marks are used, the path given for the file to include is relative to the directory of the file that contains the #INCLUDE statement; when quotations are not used, I believe the path to the file to include is relative to the FoxPro default directory.
>
>Your help in straightening me out on this one is appreciated!
>
>Thomas
Previous
Reply
Map
View

Click here to load this message in the networking platform