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: string; const ACount: Integer): string; overload;
C++
AnsiString AnsiLeftStr(const AnsiString AText, const int ACount);

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

 

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