Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bitwise function(s) Question -- Again!
Message
De
13/11/2002 15:54:12
 
 
À
13/11/2002 15:37:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00722339
Message ID:
00722359
Vues:
24
>It sounds to me like you want to clear the 3rd bit. So, BitClear(10,3). But if the 3rd bit(ie - 8) has already been cleared, then you will still have 10. BitClear(2,3) will return 2.

Do I ? <s>

Obviously, there are many values at runtime represented by constants. I need something where I don't actually have to look at the numbers and make decisions about which bit needs clearing. I just wondered if there was a straightforward way I could feed both values in and get the right result.

Thanks anyway!

Best
-=Gary
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform