Get item by name
Source position: fpmkunit.pp line 362
public function TNamedCollection.ItemByName( |
const AName: string |
):TNamedItem; |
AName |
|
Name of item to retrieve |
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.
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.