>>This will also work if you are wanting to clear more than one bit at a time. > >Could you give me an example of what you mean.
lnFlags = 0b11001010 && pretend we have a binary data constant
lnMask = 0b01001000 && we want to turn off these two bits, not to be confused with a quarter
lnResult = bitand( lnFlags, bitnot( lnMask ) )
? lnResult && 0b10000010 would show up