Does anyone have any code they are willing to share to perform a Bitwise AND and Bitwise OR on two values that would work on iOS (since the Bitwise
module does not exist)?
Thanks,
Does anyone have any code they are willing to share to perform a Bitwise AND and Bitwise OR on two values that would work on iOS (since the Bitwise
module does not exist)?
Thanks,
[code]dim x, y as integer
x = 255
y = x and 4 // gets 4… correct
x = 1
y = x or 4 //y is now 5, correct
[/code]
Ha, thanks. I hadnt realised the dual functionality of the And keyword.
This works, and is faster, in all project types.