BITSET( ) Function

Example   See Also

Sets the bit to 1 in a numeric value and returns the resulting value.

Syntax

BITSET(nExpression1, nExpression2)

Returns

Numeric

Arguments

nExpression1

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

nExpression2

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