[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TBits.SetIndex

Sets the start position for FindNextBitand FindPrevBit

Declaration

Source position: classesh.inc line 280

public procedure TBits.SetIndex(

  Index: LongInt

);

Description

SetIndexsets the search start position forFindNextBitand FindPrevBitto Index. This means that these calls will start searching from position Index.

This mechanism provides an alternative to FindFirstBitwhich can also be used to position for the FindNextBitand FindPrevBitcalls.

Errors

None.

See also

FindNextBit

  

Searches the next bit with a particular value.

FindPrevBit

  

Searches the previous bit with a particular value.

FindFirstBit

  

Find first bit with a particular value

OpenBit

  

Returns the position of the first bit that is set to False.