Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#INCLUDE Files
Message
From
26/07/2001 11:34:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00535771
Message ID:
00535782
Views:
17
>I am working on a new set of classes for my company based on ADO and need to include adovfp.h in my forms and some prg's. I am trying to figure out the scope of include files.
>
>It seems that I have to include it in the top of every routine that I need to reference a constant defined in the .h file before using it.
>
>Is there a way to make these global? I would like to include this file 1 time in the startup of my program and be done with it if possible.
>
>As always... Thanks...
>Tommy

Tools | Options; Files - there is an option for a global include file. I think it will only affect new classes you create, not existing ones.

For a form or class: Form | Include File (or Class | Include File).

I recommend to have a main include file, softwareplus.h, that makes references to your other include files. Thus, to add additional include files, you only need to change softwareplus.h (and recompile all).

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform