#INCLUDE is pre-compiler directive and is processed at compile time not runtime. You cannot use variables of any kind in it because they do not exists at compile time.
>
>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!
--sb--