RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.ContainsStr Function

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

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

StrUtils

For a case insensitive search, use the ContainsText routine. 

 

Commonly Used Long String Routines 

String Types 

String Constants 

ContainsText

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