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