Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot BUILD - getting error finding global variable
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01381398
Message ID:
01381400
Vues:
51
#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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform