Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scope of header file
Message
From
30/12/2002 08:24:21
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00736219
Message ID:
00736539
Views:
17
>I see. I'll have to look at this more some time. Until then, I'll take your word for it. :)

Dana,

To simplify maintenance, I suggest you have one single global include file. Let's say you call it DANA.H, or, more likely, the company name, or perhaps something like STANDARD.H.

This file can then reference several other include files:
#INCLUDE ExcelConstants.h
#INCLUDE WordConstants.h
#INCLUDE StandardMessages.h
etc.
You include your main include file (DANA.H) into each and every program, form, and class. You can later add additional include files to your main include file - this will affect all files that reference it (after recompiling).

BTW, forms and classes only allow a single include file anyway (specified with "Form | Include", or "Class | Include").

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform