RAD Studio VCL Reference
AnsiStrings.IndexText Function

Look for string in string array without case-sensitivity..

function IndexText(const AText: AnsiString; const AValues: array of AnsiString): Integer; overload;
int IndexText(const AnsiString AText, const array of AnsiString AValues);

IndexText 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 IndexStr to search strings with case-sensitivity. 

This function is the same as AnsiIndexText


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!