Nope, you can't use #include that way.
Remember ALL [#] commands are evaluated during the Compile time not at run-time.
The compiler didn't know what is the value of gcPath. So you must pint the full path to that header file w/o using variables or set the PATH before compiling the application and use #INCLUDE L_FOX.H.
>Hi Gang!
>
>This code was added in by another coder here at work.
>
>When I try to BUILD the exe, I get a compile error...
>
>****************************************************************************
>Compiling c:\pharmacy\class libraries\forms\forms_rx.vcx
>#INCLUDE gcPath + "\L_FOX.H"
>Error in line 13 of frmrx.pgfScreen.FillPage.cmdPrefill.Click (record 1574): File does not exist.
>****************************************************************************
>
>Here is the code...
>
>
>*TMN 03/21/08 - take prescription picture
>IF pharmacy_config.digitize_scripts = .T.
>
><blah blah blah....>
>
>*Here is the offending code
> #INCLUDE gcPath + "\L_FOX.H"
>*
>
><more blah blah blah...>
>
>ENDIF
>
>
>The gcpath variable is GLOBAL, and seems to be found by many other programs in the Project.... why does this one fail?
>
>Should I add something to let this code know what this variable is?
>
>Thanks!
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.