Performs a case insensitive search for substring ASubText in string AText. Returns true if one or more instances of ASubText exist in AText.
function ContainsText(const AText: string; const ASubText: string): Boolean;
Boolean ContainsText(const AnsiString AText, const AnsiString ASubText);
StrUtils
For a case sensitive search, use the ContainsStr routine.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|