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

For a case insensitive search, use the ContainsText routine. 

 

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