I wish to turn off the bit for the value 128 but the and operation is not working like I would expect it to function. Any assistance woulf be appreciated.


$x = 163
? $x
$x = $x | 8
? $x
$x = $x & not 128
? $x

exit 1

I want the value to be 41 after processing. I know IU can subtract 128 in this one case, but why doesn't the bit operator work? I will need it work to have a valid function moving forward.


Edited by Howard Bullock (2003-12-11 03:55 PM)
_________________________
Home page: http://www.kixhelp.com/hb/