RAD Studio VCL Reference
AnsiStrings.AnsiRightStr Function

Returns substring of specified length at end of string.

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