|
Previous Top Next |
Prototype: | (Long pVariable, Byte pBitToGet), Byte |
pVariable | The value to get bit information from |
pBitToGet | The bit to get the status from. Note that bits are zero (0) based so the lowest bit is 0, next is 1 and so on. |
Returns | Returns the status of the specified bit, either 0 or 1 |
This method checks the status of a single bit and returns either 0 or 1 depending on if the bit is off or on.
Example:
ITC ITCoreClass
L Long
S String(32)
B Byte
Code
L = 8
B = 1
Message('Bit ' & B & ' is: ' & ITC.GetBit(L,B)
See also: