RAD Studio VCL Reference
AnsiStrings.ContainsText Function

Test if subtext is found in text without case-sensitivity.

function ContainsText(const AText: AnsiString; const ASubText: AnsiString): Boolean;
Boolean ContainsText(const AnsiString AText, const AnsiString ASubText);

ContainsText returns true if the subtext is found in the given text without case-sensitivity and returns false otherwise. It supports multi-byte character strings (MBCS) AnsiStrings.  

Use ContainsStr to make this test with case-sensitivity.  

ContainsText is the same as AnsiContainsText


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