Skip to content

TWordHelper.SetBit

Set bit to 1.

Declaration

Source position: syshelph.inc line 1000

public 
function TWordHelper.SetBit(const Index: TWordBitIndex) : Word;

Description

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

See also

Name Description
TWordHelper.ClearBit Set bit to 0.
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.