>>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