RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.AnsiLeftStr Function

Returns the substring of a specified length that appears at the start of a string.

Pascal
function AnsiLeftStr(const AText: AnsiString; const ACount: Integer): AnsiString;
C++
AnsiString AnsiLeftStr(const AnsiString AText, const int ACount);

StrUtils

AnsiLeftStr returns the leading characters of AText up to a length of ACount characters. 

 

Copy 

TrimLeft 

AnsiStartsText 

AnsiStartsStr 

LeftStr 

LeftBStr

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