Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TShortIntHelper.SetBit

Set bit to 1.

Declaration

Source position: syshelph.inc line 941

public function TShortIntHelper.SetBit(

  const Index: TShortIntBitIndex

):ShortInt;

Description

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

See also

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.


Documentation generated on: Nov 22 2024