RAD Studio VCL Reference
|
Look for string in string array without case-sensitivity.
function AnsiIndexText(const AText: AnsiString; const AValues: array of AnsiString): Integer; overload;
int AnsiIndexText(const AnsiString AText, const array of AnsiString AValues);
AnsiIndexText returns the index of a matching string in an array of strings. If the string is not found, the function returns -1.
The string comparison is made without case-sensitivity and is controlled by the current user locale, as for AnsiSameText.
Use AnsiIndexStr to search strings with case-sensitivity.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|