>I have a .h file that creates all of the Word8 VBA constants using #DEFINE. I also have many methods in a custom class that attempt to use one or more of these constants. Do I have to #INCLUDE the .h file in every method that uses these constants? Or is there a way to make these constant definitions "public"?
In VFP6, you can have a single .H file included in all modules (Ian Russel gave a method to set it automatically; I prefer to set it programmatically using the _INCLUDE system variable.) Under VFP5 and earlier, you have to explicitly include it in each method that needs it. in VFP6, if there's more than one needed, you either have to put them all together in one big file, or explcitly set them in each moethd.
In a non-visual class, a #INCLUDE at the beginning of a procedure file propagates to everything in that procedure file.