Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's the DEFINE scope?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01028851
Message ID:
01028852
Views:
13
Pablo,

In your prg files, you'll need to do an #INCLUDE myIncludeFile.h and in each of your visual classes, you click the Class menu, then Include file and browse to it to have it included in all of the methods of that class.

HTH,
Chad

>Hello,
>
>I have a constants .h file.
>And I need those constants to be avaible from every single object. Everywhere.
>
>Yes, I've saw _INCLUDE, but it seems doesn't work as I've expected. COnstants are now recognized from iside the object.
>
>So, I have :
>a constants.h file
>a cst class that's a custom subclass, and many other subclasses with many methods each.
>
>I want to be able to use those constants there.
>
>Do I need to type #Include in every method? What's the best solution?
>
>Thanks in advance!
>Pablo S.
_________________________________
There are 2 types of people in the world:
    Those who need closure
Previous
Reply
Map
View

Click here to load this message in the networking platform