|
Previous Top Next |
Prototype: | (Long pVariable, Byte pBitToSet, Byte pBitSet), LONG |
pVariable | The value to set bit information in |
pBitToSet | The bit to change status. Note that bits are zero (0) based so the lowest bit is 0, next is 1 and so on. |
pBitSet | Either 0 or 1 depending on if you want to turn the bit off or on. |
This method is used to set a single bit in an integer value.
Example:
ITC ITCoreClass
L Long
S String(32)
B Byte
Code
L = 8
B = 1
L = ITC.SetBit(L,B,0)
Message('Bit ' & B & ' is now: ' & ITC.GetBit(L,B)
See also: