Skip to content

TNamedItemList.IndexOfName

Find index of named item

Declaration

Source position: fpmkunit.pp line 376

public 
function TNamedItemList.IndexOfName(const AName: string) : Integer;

Description

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.