Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Include File In VCX
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00522874
Message ID:
00523003
Views:
10
>I have created an include file that I want to use in all the classes in my vcx.
>My question is where do I #include it? Do I have to #include it in every method or can I just put it in one place that will be seen by the entire library?

If you have already created your classes, the _INCLUDE system variable won't work because it is not retroactive. It will work on newly created classes. To retrofit your existing classes, do the following:

1. Open your VCXs as a table (i.e. use myclasslib.vcx alias insrc)
2. Execute the following SQL statement: update incsrc set reserved8 = "MyIncludeFile.H" where !empty(class) and !empty(baseclass)
3. Close the VCX.
4. Compile the VCX (compile classlib myclasslib all)

You should be good to go.

HTH.

FWIW, I will be posting a utility that does this for class libraries, forms and menus in a specified directory today sometime.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform