Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#INCLUDE Files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00535771
Message ID:
00535789
Vues:
12
You have to put it at the top of each PRG file. No way around this. In each class of a VCX ClassLib you have to define the include file as well. Same for each form. I created a macro for VCXs and a macro for SCXs that would do this for me. The macro for forms looks like:

{ALT+M}i{TAB}{TAB}d:\myapps\defaults.h{ENTER}
{CTRL+W}

For classes, change the ALT+M to ALT+C. If you define this in your base classes, then you will not have to define this when you create new forms or create subclasses of any of your base classes.

To further simplify this, I only put 1 #INCLUDE statement in my classes, forms and prgs. If I need others, I just add #INCLUDE statements at the top of my DEFAULTS.H file.


>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
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform