RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.AnsiLeftStr Function

Returns substring of specified length at start of string.

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

AnsiLeftStr returns the leading characters of AText up to a length of ACount characters. This function supports multi-byte character strings (MBCS) AnsiStrings

 

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