Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bittest function
Message
 
À
14/09/2000 09:53:30
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00416338
Message ID:
00416340
Vues:
21
>I am using the bittest function and getting a function, argument, type, or count is invalid. The code is bittest(bitmask,196608).
>
>What's wrong?
>
Jim,

The function tests one individual bit as to whether or not it is set. It deals with 32 bit integers. The second parameter needs to be, therefore, in the range of 0 to 31. If 196608 is the value you're testing, then
? BITTEST(196608, 15) && .F.
? BITTEST(196608, 16) && .T.
? BITTEST(196608, 17) && .T.
? BITTEST(196608, 18) && .F.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform