[Overview][Classes][Procedures and functions][Index] Reference for unit 'LookupStringList' (#lazutils)

TLookupStringList.IndexOf

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

Declaration

Source position: lookupstringlist.pas line 54

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

TStringList.IndexOf


Version 4.0 Generated 2025-05-03 Home