RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.AnsiRightStr Function

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

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

AnsiRightStr returns the trailing characters of AText up to a length of ACount characters. Thus, for example, if AText is the string "Programmer" and ACount is 7, AnsiRightStr returns the string "grammer". 

 

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