W
werdan
G'day all
I'm bitmapping integers to store combined boolean values and have hit a bit
of a snag.
I want to be able to turn off certain bits if they they match in a number
but not turn them on if they don't (as in the case of xor). Basically I wish
to use the logical operation A > B.
For example..
A B Result
0 0 = 0
0 1 = 0
1 0 = 1
1 1 = 0
So that if A = 3 and B = 9 then result would be 2.
Is there a bit-wise greater-than function available in VB?
I was looking at the 'AndAlso' function could possibly be made to work but
it's boolean only.
Any help would be greatly appreciated.
Cheers.
I'm bitmapping integers to store combined boolean values and have hit a bit
of a snag.
I want to be able to turn off certain bits if they they match in a number
but not turn them on if they don't (as in the case of xor). Basically I wish
to use the logical operation A > B.
For example..
A B Result
0 0 = 0
0 1 = 0
1 0 = 1
1 1 = 0
So that if A = 3 and B = 9 then result would be 2.
Is there a bit-wise greater-than function available in VB?
I was looking at the 'AndAlso' function could possibly be made to work but
it's boolean only.
Any help would be greatly appreciated.
Cheers.