Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about global vars/procedures
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00356628
Message ID:
00357336
Views:
16
>Ok... I'm using "set procedure to" and that works fine. I'm investigating using a global
>object with methods for my procedures as suggested by another user. One last question
>on this thread though... Is there any way to have global constants "#define...." so that
>I don't have to include the .h file in each and every form I need it? Maybe properties of
>a global object would work?
>

In development, the _INCLUDE variable in VFP6
_INCLUDE System Variable

Specifies a default header file included with user-defined classes, forms, or form sets.

Syntax

_INCLUDE = HeaderFileName

Arguments

HeaderFileName

Specifies a default header file of predefined compile-time constants automatically included with user-defined classes, forms, or form sets. If your header file is in a directory other than the current default directory, include a path with the header file name. Contains the empty string by default.

Remarks

You can also specify the default header file with the Default Include File item in the File Locations tab of the Options dialog box.


>>Joe,
>>
>>You can use SET PROCEDURE TO .... ADDITIVE
>>
>>Although I gave up FPW style monolithic procedure files a long time ago. I find individual .PRGs much easier to use and like the finer granularity they provide.
>>
>>>So there is no way to have a bunch of procedures in a file that you can
>>>call globally? I have to have a separate file for each procedure I want to call?
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform