Skip to content

TShortIntHelper.TestBit

Check bit.

Declaration

Source position: syshelph.inc line 947

public 
function TShortIntHelper.TestBit(const Index: TShortIntBitIndex)
                                 : 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
TShortIntHelper.SetBit Set bit to 1.
TShortIntHelper.ClearBit Set bit to 0.
TShortIntHelper.ToggleBit Invert bit.
TShortIntHelper.HighestSetBitPos Return the position of the leftmost bit set.
TShortIntHelper.LowestSetBitPos Return the position of the rightmost bit set.
TShortIntHelper.SetBitsCount Count number of bits set.
TShortIntHelper.Bits Read or write a bit.