RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.MatchStr Function

Determines if string in string array with case-sensitivity.

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

MatchStr 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 with case-sensitivity and is controlled by the current user locale, as for SameText.  

This function is the same as AnsiMatchStr

To make the comparison without case-sensitivity, use MatchText

 

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