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

StrUtils

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". 

 

Copy 

TrimRight 

AnsiEndsText 

AnsiEndsStr 

RightStr 

RightBStr

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