Unit 'Contnrs' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TFPHashList.FindIndexOf

Return index of named item.

Declaration

Source position: contnrs.pp line 260

public function TFPHashList.FindIndexOf(

  const AName: shortstring

):Integer;

Arguments

AName

  

Key value to look for.

Function result

Index of the key.

Description

FindIndexOf returns the index of the key AName, or -1 if the key does not exist in the list. It uses the hash value to search for the key. Note that Nil data pointers will result in -1 as well.

See also

TFPHashList.HashOfIndex

  

Return the hash value of an item by index.

TFPHashList.NameOfIndex

  

Returns the key name of an item by index.

TFPHashList.IndexOf

  

Return the index of the data pointer.

TFPHashList.Find

  

Find data associated with key.

TFPHashList.FindWithHash

  

Find first element with given name and hash value.


Documentation generated on: Dec 22 2024