BSet Function
Sets a bit in a number and returns the new value.
Syntax
BSet (number, bitNum)
Parameters
- number
- Specify the value to set the bit with an expression or numeric value.
- bitNum
- Specify the bit (integer from 0 to 31) to be set by an expression or numeric value.
Return Values
Returns the bit set value of the specified numeric value (integer).
See Also
BClr, BClr64, BSet64, BTst, BTst64
BSet Function Example
flags = BSet(flags, 1)