Provides the index of a specified string in an array of strings.
function AnsiIndexText(const AText: string; const AValues: array of string): Integer;
int AnsiIndexText(const AnsiString AText, const array of string AValues);
StrUtils
AnsiIndexText returns the 0-offset index of the first string it finds in AValues that matches AText case-insensitively. If the string specified by AText does not have a (possibly case-insensitive) match in AValues, AnsiIndexText returns –1. Comparisons are based on the current system locale.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|