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:
01381403
Vues:
40
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform