Where are Bitwise Operators

D

Dennis W. Bulgrien

How does one do bitwise manipulations such as exclusive-or (XOR), AND, etc.?
 
D

Dennis W. Bulgrien

Make VBA functions like these:

Public Function BITXOR(x As Long, y As Long)
BITXOR = x Xor y
End Function

Public Function BITAND(x As Long, y As Long)
BITAND = x And y
End Function

Public Function BITOR(x As Long, y As Long)
BITOR = x Or y
End Function

How does one do bitwise manipulations such as exclusive-or (XOR), AND, etc.?
 
Top