Skip to content

TFPHashList.FindIndexOf

Return index of named item.

Declaration

Source position: contnrs.pp line 265

public 
function TFPHashList.FindIndexOf(const AName: RawByteString) : SizeInt;

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

Name Description
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.