RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.AnsiMatchText Function

Indicates whether an array of strings contains a case-insensitive match to a specified string.

Pascal
function AnsiMatchText(const AText: string; const AValues: array of string): Boolean; overload;
C++
Boolean AnsiMatchText(const AnsiString AText, const array of string AValues);

Call AnsiMatchText to determine whether the string specified by AText matches one of the strings in AValues. Comparisons are case-insensitive and use the current system locale. 

AText is the string to locate. 

AValues is the array of strings to search.

Note: AValues_Size is the index of the last element in AValues (one less than the number of elements).
AnsiMatchText returns true if AText (or a string that matches except for case) appears in AValues, false if it does not appear in the array. 

 

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