StartsText determines if the substring ASubText begins the string AText using a case insensitive algorithm. If ASubText matches the begining of AText, the result is true, otherwise it is false.
function StartsText(const ASubText: string; const AText: string): Boolean;
Boolean StartsText(const AnsiString ASubText, const AnsiString AText);
StrUtils
For a case sensitive comparison, use the StartsStr routine.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|