Find index of named item
Source position: fpmkunit.pp line 374
public function TNamedItemList.IndexOfName( |
const AName: string |
):Integer; |
AName |
|
Name to search for |
Result returns the zero-based index of the named item in the list, or -1 if no item with the specified name is found. Enables location-based operations on named items within the list.
Searches for an item with the specified name and returns its zero-based index in the list. Returns -1 if no item with the given name is found.