RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.MatchText Function

Determines if string in string array.

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

MatchText returns true if it finds a matching string in an array of strings. If the string is not found, the function returns false.  

The string comparison is made without case-sensitivity and is controlled by the current user locale, as for AnsiSameText

This function is identical to AnsiMatchText

To make the comparison with case-sensitivity, use MatchStr

 

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