Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bitwise function(s) Question -- Again!
Message
 
 
To
14/11/2002 04:53:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00722339
Message ID:
00722729
Views:
19
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
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform