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);

StrUtils

For a case sensitive search, use the ContainsStr routine. 

 

Commonly Used Long String Routines 

String Types 

String Constants 

ContainsStr

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!