Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#include in Sub-Classes
Message
From
17/06/2002 00:15:36
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00669035
Message ID:
00669076
Views:
13
>Bill,
>
>Nope, there is not.
>
>The way that I deal with this issue, is to greate a .h file with the same name as the classlib itself. Every classl in the classlib adds it's constants to this file. There is also a #include for every classlib.h that has a ParentClass of a class in the classlib. This is the easiest way I've found to make sure that every class has access to all the #defines.
>
>>Is there any way to get a sub-class to AUTOMATICALLY include the Include File that is in the parent class?

Please excuse my jumping in here, but I need some clarifications on this (I am only studying and practicing at this time, and VFP is my first development platform/effort):

Tell me, does this follow from your explanation above?:

1. VFP does not automatically create a constant file (.h) for the class libraries but VFP will, automatically and without further coding, add the constant values of the classes within the library that you use.

2. So in order for item 1 above to happen you must manually create an empty "library_name.h" of the library(ies) that contain the classes you intend to use in the project, and, of course include those files in the project.

3. The above is true whether you use a "framework", such as CodeBook, MM, VMP, or other... [I know you didn't cover this, but I'm trying to cover as much ground with this question as possible. And no, I haven't purchased a framework yet since I am only learing the nuances of VFP itself as a pre-requisite, and have only done a few simple projects so far... :(]
=========================
PabloSr, Still Learning!
DevDBFox
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform