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

TNamedCollection.ItemByName

Get item by name

Declaration

Source position: fpmkunit.pp line 362

public function TNamedCollection.ItemByName(

  const AName: string

):TNamedItem;

Arguments

AName

  

Name of item to retrieve

Function result

Result returns the item with the specified name, or nil if no item with that name exists in the collection. Provides direct access to collection items by name rather than by index.

Description

Retrieves an item from the collection by its name. Returns the TNamedItem object if found, or nil if no item with the specified name exists.


Documentation generated on: Dec 15 2025