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



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

TBits.FindPrevBit

Searches the previous bit with a particular value.

Declaration

Source position: classesh.inc line 291

public function TBits.FindPrevBit: LongInt;

Description

FindPrevBit resumes a previously started search. It searches for the previous bit with the value specified in the FindFirstBit. The search is done towards the beginning of the array and starts at the position last reported by one of the Find calls or at the position set with SetIndex.

If another bit with the same value is found, its position is returned. If no more bits with the same value are present in the array, -1 is returned.

Errors

None.

See also

FindFirstBit

  

Find first bit with a particular value

FindNextBit

  

Searches the next 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