Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bittest function
Message
 
To
14/09/2000 09:53:30
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00416338
Message ID:
00416340
Views:
22
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform