Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's the DEFINE scope?
Message
De
05/07/2005 09:23:37
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
04/07/2005 21:22:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01028851
Message ID:
01028966
Vues:
11
>Thank you both!
>
>I'm using _INCLUDE for my clases, and now I understand it's purpose.

It's only helping you - when you create a new class (of the limited set that Sergey mentions), the content of _include is used as the default include file for that class. Which means that you don't have to open up Class/Include file in the menu and enter it yourself.

Limitations:
- works for a limited set of classes
- doesn't do anything for classes you created before you set it
- you still have to #include manually in the prg files

Watch out: if the content of your _include is not what you want, it will still be used as a default include file for any new class you create. I've had a home()+"vfp.h" (fullpathed!) in my _include without noticing it, and later had to chase it throughout my classes and replace it with my include\app.h. It can screw you royally if you don't watch.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform