System.AnsiStrings.AnsiRightStr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AnsiRightStr(const AText: AnsiString; const ACount: Integer): AnsiString;

C++

extern DELPHI_PACKAGE System::AnsiString __fastcall AnsiRightStr(const System::AnsiString AText, const int ACount)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.AnsiStrings.pas
System.AnsiStrings.hpp
System.AnsiStrings System.AnsiStrings

Description

Returns substring of specified length at end of string.

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.

See Also