RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.AnsiRightStr Function

Returns substring of specified length at end of string.

Pascal
function AnsiRightStr(const AText: AnsiString; const ACount: Integer): AnsiString; 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". 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!