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

TNamedItemList.IndexOfName

Find index of named item

Declaration

Source position: fpmkunit.pp line 374

public function TNamedItemList.IndexOfName(

  const AName: string

):Integer;

Arguments

AName

  

Name to search for

Function result

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.

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.


Documentation generated on: Dec 15 2025