Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MESSAGEBOX
Message
 
 
À
04/05/2000 12:59:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00365597
Message ID:
00366397
Vues:
15
Erik,

I use one .h file for each .vcx. Every class in the classlib that needs any #defines puts them in that .h. If the class is a subclass of another classlib then the other .h is #included too. I also have one .h for a project, any forms or .prgs that need the #defines put them there. The project.h typically does a #include for all of the classlib.h files. This scheme works well for me and I don't have to spend time looking for the files.

>To use the same message in prgs, vcxs, scxs, introduces a lot of places to lose the link to the constant, and in my erxperience, this happens all the time. I have spent hours trying to figure out why the hell VFP can't find the stupid include file.
>
>My frustrations are old, however, and its entirely possible that if I gave constants another go, I would find a practical way to handle them... but I haven't yet.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform