>It's worse for Visual classes; each method needs to have the #DEFINES it uses declared in it.
>
>An easy method to address this is to create a .H file containing your #DEFINES and #INCLUDE that file whereever it's needed. In VFP6, a new system variable, _INCLUDE, was added to VFP; if you put the name of a file in this variable, it will be automatically included and available to everything.
>
Just to add- forms and visual classes both have a place to specify form wide and class wide INCLUDE files. In the form editor, look under the Form menu item, in the class designer, look under the Class menu item for "Include file..."
Erik Moore
Clientelligence