help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

TBits.FindFirstBit

Find first bit with a particular value

Declaration

Source position: classesh.inc line 289

public function TBits.FindFirstBit(

  State: Boolean

):LongInt;

Description

FindFirstBit searches for the first bit with value State. It returns the position of this bit, or -1 if no such bit was found.

The search starts at position 0 in the array. If the first search returned a positive result, the found position is saved, and the FindNextBit and FindPrevBit will use this position to resume the search. To start a search from a certain position, the start position can be set with the SetIndex instead.

Errors

None.

See also

FindNextBit

  

Searches the next bit with a particular value.

FindPrevBit

  

Searches the previous bit with a particular value.

OpenBit

  

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

SetIndex

  

Sets the start position for FindNextBit and FindPrevBit

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505