Sign in Join
FPDoc Onlineexperiment

IndexText function

In unit StrUtils

Index of text in a list of values.

Declaration

pascal
function IndexText(const AText: Ansistring; 
 const AValues: Array of Ansistring): Integer

Description

IndexText returns the index of the string in the array aValues that matches aText, and -1 otherwise. The comparison is done case insensitively. If you wish to compare case sensitively, use IndexStr instead.

See also

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