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

TLookupStringList.Find

Locates the specified value in the Strings property.

Declaration

Source position: lookupstringlist.pas line 53

public function TLookupStringList.Find(

  const S: string;

  out Index: Integer

):Boolean; override;

Arguments

S

  

Value to find in the Strings property.

Index

  

Ordinal position where the value was found.

Function result

True when the value is located in the Strings property.

Description

Find is an overridden Boolean function used to locate the specified value in the Strings property. The value in Index contains the position in Strings where value was located using the IndexOf method. Index contains -1 if the value in S is not stored in Strings. The return value if True when Index contains a value other than -1.

Please note: Find does NOT call the inherited method.

See also

TStringList.Find


Version 4.0 Generated 2025-05-03 Home