Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Primer on header files.
Message
 
 
À
11/01/1999 15:02:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00174787
Message ID:
00174805
Vues:
22
Sergio,

.h files are processed at COMPILE time so you can't "load" them like that. If you #include it in a method then only that method has access to the #defines. You can use the Form/Class menu, then Include File to set the include file so that all methods see the #defines.

>Can someone tell me how can I use .h files to define constants.
>
>I made the following h file:
>
>*invoice.h
>#DEFINE DOCUMENT_FEE 90
>#DEFINE SEAL_FEE 3
>#DEFINE VALIDATION_FEE 20
>
>And I try to include it using:
>
>#INCLUDE [..\invoice.h]
>
>in the load event.
>
>But when I call for the constant it isn't there.
>
>
>What am I doing wrong?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform