Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bittest function
Message
From
14/09/2000 10:10:56
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:
00416347
Views:
26
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
Previous
Reply
Map
View

Click here to load this message in the networking platform