Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a global #define constant
Message
De
13/11/2004 09:36:25
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
13/11/2004 04:54:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows '98
Database:
Visual FoxPro
Divers
Thread ID:
00961115
Message ID:
00961146
Vues:
11
>Hi Martin
>
>I have already tried but it does not work
>
>my alfa.h is
>
>#DEFINE compila .T.
>
>
>
>In main program I have insert
>
>
>_include= 'c:\alfa.h'
>
Doesn't work that way - _include is consulted when you create a new visual class (or form, formset), and used as a source for the class's header file if you didn't specify one. But you can't add them afterwards in this way. Also, doing anything about header files at runtime will have absolutely no effect - header files are something that has to be set before compilation. So, setting _include in the main .prg will set _include for the rest of your VFP session, and will be used in any visual class you create before you quit, but it will do nothing to classes that already exist.

Another way to set _include is in the tools/options/File Locations/Default Include File. Don't forget to click "Set as default", or else it will also be for the duration of current VFP session.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform