Sign in Join
FPDoc Onlineexperiment

TNamedItemList.IndexOfName function

Member of TNamedItemListpublicIn unit fpMkUnit

Find index of named item

Declaration

pascal
function IndexOfName(const AName: string): Integer

Arguments

AName

Name to search for

Function result

Index of found item or -1 if not found

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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.