Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bitwise function(s) Question -- Again!
Message
From
14/11/2002 11:46:12
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00722339
Message ID:
00722746
Views:
24
David:

Got it!

Thanks.

>Gary,
>
>>>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
>
-=Gary
Previous
Reply
Map
View

Click here to load this message in the networking platform