Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The mystery of #DEFINE
Message
De
18/10/2012 13:48:33
 
 
À
18/10/2012 13:44:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01555265
Message ID:
01555266
Vues:
142
This message has been marked as the solution to the initial question of the thread.
Right, the form class will know about them, not the form. But you don't need to include in each method. On the VFP menu, select Form -> Include File then specify your file. You can do only one, but it can reference other include files.

Also, pull the include files local to the project so they get checked into version control with the rest of the project.

>Hi friends:
>
>I've been using constants for many things. But just a few. Every time I needed one I had to include "#INCLUDE DEFINITION.CH" in the method I had to use it...
>
>Now I pasted code in a few methods (form init for example) with constants and although form class has include file constants are not recognized.
>
>I know if I add "#include" in every method it will work but there must be a way for believe what VFP help says is true...
>
>Perhaps I must say I use class designer, not code.
>
>Thank you.
>
> Héctor
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform