RightStr function
Copy a given number of characters, counting from the right of a string.
Declaration
function RightStr(const AText: AnsiString; const ACount: SizeInt)
: AnsiStringArguments
AText | String to copy characters from. |
ACount | Number of characters to copy. |
Function result
Resulting string.
Description
RightStr
returns a string containing the rightmost
ACount
characters from the string
AText
.
If
ACount
is larger than the length (in characters) of
AText
, only as many characters as available are returned.Errors
None.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
