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

# TBits.SetIndex

Sets the start position for FindNextBit and FindPrevBit

## Declaration

`public procedure TBits.SetIndex(`
`Index: LongInt`
`);`

## Description

SetIndex sets the search start position forFindNextBit and FindPrevBit to Index. This means that these calls will start searching from position Index.

This mechanism provides an alternative to FindFirstBit which can also be used to position for the FindNextBit and FindPrevBit calls.

## Errors

None.

## See also

TBits.FindNextBit |  | Searches the next bit with a particular value.
TBits.FindPrevBit |  | Searches the previous bit with a particular value.
TBits.FindFirstBit |  | Find first bit with a particular value
TBits.OpenBit |  | Returns the position of the first bit that is set to False.