Sign in Join
FPDoc Onlineexperiment

TStrings.IndexOfName function

Member of TStringspublicIn unit Classes

Finds the index of a name in the name-value pairs.

Declaration

pascal
function IndexOfName(const Name: string): Integer; virtual

Description

IndexOfName searches in the list of strings for a name-value pair with name part Name. If such a pair is found, it returns the index of the pair in the stringlist. If no such pair is found, the function returns -1. The search is done case-insensitive.

  1. Only the first occurrence of a matching name-value pair is returned.
  2. The returned position is zero-based, i.e. 0 indicates the first string in the list.

See also

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