As part of another process I have 3 options which I have assigned a value to:
Appraisee=1
Line1=2
Line2=4
If I am given an integer (0-7) how do I check which options have been selected, eg X=6 means line1 and line2 are selected. X=5 means Appraisee and Line2, etc. I'm sure there's an easy way to do this, but buggered if I can remember how. Any ideas?
Ben
----------------------------------------------
Ben O'Hara "Where are all the stupid people from...
...And how'd they get so dumb?"
NoFX-The Decline
----------------------------------------------
Appraisee=1
Line1=2
Line2=4
If I am given an integer (0-7) how do I check which options have been selected, eg X=6 means line1 and line2 are selected. X=5 means Appraisee and Line2, etc. I'm sure there's an easy way to do this, but buggered if I can remember how. Any ideas?
Ben
----------------------------------------------
Ben O'Hara "Where are all the stupid people from...
...And how'd they get so dumb?"

----------------------------------------------