AnsiRightStr function
Copies a number of characters starting at the right of a string.
Declaration
function AnsiRightStr(const AText: AnsiString; const ACount: SizeInt)
: AnsiStringArguments
AText | String to copy characters from. |
ACount | Number of characters to copy. |
Function result
Resulting string.
Description
AnsiLeftStr
returns the
ACount rightmost characters from
AText. If
ACount is larger than the length of
AText, only as much characters as available in
AText will be copied.
If
ACount is zero or negative, no characters will be copied. The characters are counted as characters, not as Bytes.
This function corresponds to the Visual Basic RightStr function.
Errors
None.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
