Skip to content

TWordHelper.TestBit

Check bit.

Declaration

Source position: syshelph.inc line 1003

public 
function TWordHelper.TestBit(const Index: TWordBitIndex) : Boolean;

Description

TestBit reads boolean value (true if bit is 1, and false if bit is 0) from bit number determined by argument Index.

See also

Name Description
TWordHelper.SetBit Set bit to 1.
TWordHelper.ToggleBit Invert bit.
TWordHelper.TestBit Check bit.
TWordHelper.HighestSetBitPos Return the position of the leftmost bit set.
TWordHelper.LowestSetBitPos Return the position of the rightmost bit set.
TWordHelper.SetBitsCount Count number of bits set.
TWordHelper.Bits Read or write a bit.