AnsiIndexText function
Searches, case insensitive, for a string in an array of strings.
Declaration
function AnsiIndexText(const AText: AnsiString;
const AValues: Array of AnsiString): IntegerArguments
AText | String to search for. |
AValues | Array of strings to search in. |
Function result
Index of the matching element in the array, otherwise -1.
Description
AnsiIndexText matches
AText against each string in
AValues.
If a match is found, the corresponding index (zero-based) in the
AValues array is returned.
If no match is found, -1 is returned. The strings are matched ignoring case.Errors
None
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
