I have a function that I want to return a long value which is
made up of one or more constant values that I've declared.
I want the calling function to be able to parse that value and
detect which flags were included in the return and take appropriate action.
Can anyone explain to me what conventions I should use in declaring my constants (odd numbers only? prime numbers? etc)
as well as how I should build my return value?
VB Code:
'like this? lReturn = myFlag1 Or myFlag2 ' or like this? lReturn = myFlag1 And myFlag4 And myFlag5 ' or something else?
I also need to know how to parse the return value to know which flag constants were present. I think that it would be some sort of 'Or' statement, but I'd like to be sure.
Thanks.




Reply With Quote