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)
>? BITTEST(196608, 16)
>? BITTEST(196608, 17)
>? BITTEST(196608, 18)
Thanks
Jim