It doesn't sound right. The SET PATH statement in the code wouldn't have any effect on the #INCLUDE statement because the #INCLUDE statement is processed by compiler and the SET PATH statement is only executed when code is run.
The file in the #INCLUDE statement either has to be on the VFP IDE search path or you've to provide full file name.
>
>This is what I thought. I realize now what my problem is/was. This is a main program (like main.prg). The .H file is in the /INCLUDE folder. And the path to this folder is
after the #INCLUDE.. line. Therefore, when I run this project from the VFP IDE I get error on the line where one of the #DEFINE is used. Just to test it, I copied the SET PATH statement right above the #INCLUDE... line and it works. So I guess, when it comes to using this include in the main program I have to have a copy of it in the application folder.
>
--sb--