BITTEST( ) Function

Example   See Also

Returns true (.T.) if a specified bit in a numeric value is set to 1; otherwise, returns false (.F.).

Syntax

BITTEST(nExpression1, nExpression2)

Returns

Logical

Arguments

nExpression1

Specifies the numeric value in which a bit is checked. If nExpression1 is not an integer, it is converted to an integer before its bit is checked.

nExpression2

Specifies the bit position in nExpression1 that is checked. nExpression2 can range from 0 to 31; 0 is the rightmost bit.