GetBit
Previous  Next

Gets the value (true = 1 , false = 0) of a specific bit in a decimal number.
Syntax: GetBit (Number As Int32, Bit As Int32) As Boolean
Syntax: GetBit2 (Number As UInt32, Bit As Int32) As Boolean
Bit - The bit that will be returned. The least significant bit number is 0.

Example:
Sub App_Start
      bit.New1
      msgbox(bit.GetBit(17,4)) 'true
End Sub