Skip to content

TShortIntHelper.SetBit

Set bit to 1.

Declaration

Source position: syshelph.inc line 944

public 
function TShortIntHelper.SetBit(const Index: TShortIntBitIndex)
                                : ShortInt;

Description

SetBit puts value 1 to bit number determined by argument Index.

See also

Name Description
TShortIntHelper.ClearBit Set bit to 0.
TShortIntHelper.ToggleBit Invert bit.
TShortIntHelper.TestBit Check 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.