Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#DEFINE question
Message
From
01/02/1999 12:35:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00182536
Message ID:
00182566
Views:
7
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform