Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bittest function
Message
De
14/09/2000 10:10:56
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:
00416347
Vues:
25
You're right, thanks. What would I do without the people on UT?

Have a day,

Jim

>>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.
Thanks

Jim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform