Name
BitSet -- set a bit (V2.0)
Synopsis
n = BitSet(x, b)
Function
Sets bit number b in x and returns the result.

Inputs
x
source value
b
bit to set
Results
n
result of operation
Example
Print(BinStr(BitSet(Val("%10111111"), 6)))
The code above sets bit 6 in the value %10111111 and returns the result which is %11111111.

Show TOC