help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TStrings.IndexOfName

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

Declaration

Source position: classesh.inc line 500

public function TStrings.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.

Remark:
  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

TStrings.IndexOf

  

Find a string in the list and return its position.

TStrings.IndexOfObject

  

Finds an object in the list and returns its index.

TStrings.Strings

  

Indexed access to the strings in the list.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505