Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#DEFINE question
Message
De
01/02/1999 12:35:02
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00182536
Message ID:
00182566
Vues:
8
>>Robert,
>>It could work as long as defines are in scope during compilation at all places where you use HP_ON and HP_Off. Instead having HP_ON/OFF as functions might be better ?
>>Cetin
>
>
>All my objects, prgs, forms refer to the #include devConfig.h so I would think this would work without calling a function. Do you agree or would I be better off creating single function with a parm. (I have a devFunc.prg with all my generic functions in it - also included in all)
>
>Robert
Robert,
I still would choose generic function approach. One day that define could be more complex. Not sure really. A define simply puts the real literals without evaluating at all, during compilation. I never liked those wait LOC_* defines too.
Even having a "do nothing" function seems smarter to me than a define :) I get the feeling "defines" should be spared for constants (just personal and both would work).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform