Sign in Join
FPDoc Onlineexperiment

TLookupStringList.IndexOf function

Member of TLookupStringListpublicIn unit LookupStringList

Gets the position in Strings where the specified value is stored.

Declaration

pascal
function IndexOf(const S: string): Integer; override

Arguments

S

Value to locate in Strings.

Function result

Ordinal position for the specified value, or -1 when it does not exist.

Description

IndexOf is an overridden Integer function used to get the position in Strings where the specified value is stored. IndexOf uses the internal String map to determine if the value in S is stored in the string list. If S already exists, the inherited method is called.

The return value contains the ordinal position for the specified value, or -1 when S does not exist in the string map.

See also

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