Find

Declaration: TVector.Find (LowElem, HighElem: integer; value: double): integer;
The method Find searches the vector element which is closest to Value and returns the index of the found element. The search range is specified by the parameters LowElem and HighElem.

Hint: Setting both parameters LowElem and HighElem to zero values forces a search through all vector elements.