Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The mystery of #DEFINE
Message
From
18/10/2012 13:48:33
 
 
To
18/10/2012 13:44:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01555265
Message ID:
01555266
Views:
144
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform