SetBit
Previous  Next

Sets a specific bit to 1 in a decimal number.
Syntax: SetBit (Number As Int32, Bit As Int32) As Int32
Syntax: SetBit2 (Number As UInt32, Bit As Int32) As UInt32
Bit - The bit that will be set. The least significant bit number is 0.

Example:
Sub App_Start
      bit.New1
      msgbox(bit.SetBit(32,6)) '96
End Sub