Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
General Questions about #Include statements
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00858377
Message ID:
00858384
Views:
14
>Hi,
>
>I have three include files that I want to include with my project. My predecessor would declare them in a method where the include file would be accessed but I would like to declare it only once in the startup program.
>
>So I have a few questions:
>
>1. Can I call all the include statements in the startup program and will they then be available throughout the operations of the program?

Nope. You'll need to include them with each form and classlib.

>
>2. Can I have more than one include file declared at a time or should I combine all of my include files into one file?

Yup. You can have one master include file, and put in it a #include for each include file you want.

>
>3. Is there a command similar to the Set("Path") that will allow me to see what has been declared.

No. Include files are processed at compile time. The runtime (and dev environment when running the program) knows nothing about them.

>
>Any suggestions for a better way to handle this issue would be greatly appreciated. BTW, I am using VFP 8 sp1.
>
>Sincerely,
>
>mickbw
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform