RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.ContainsText Function

Performs a case insensitive search for substring ASubText in string AText. Returns true if one or more instances of ASubText exist in AText.

Pascal
function ContainsText(const AText: string; const ASubText: string): Boolean;
C++
Boolean ContainsText(const AnsiString AText, const AnsiString ASubText);

For a case sensitive search, use the ContainsStr routine. 

 

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