RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.StartsText Function

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.

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

For a case sensitive comparison, use the StartsStr routine. 

 

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