Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bitwise function(s) Question -- Again!
Message
De
14/11/2002 11:46:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00722339
Message ID:
00722746
Vues:
25
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform