JCL Help:StrRight@AnsiString@SizeInt

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the Count rightmost characters from the string.


Pascal

 function StrRight(const S: string; Count: SizeInt): string;
function StrRight(const S: AnsiString; Count: SizeInt): AnsiString;


Parameters

Parameters Description
const S: string The string from which to copy.
Count: SizeInt The number of characters to copy.


Return Value

The Count of rightmost characters from S.


Description

StrRight returns the Count number of rightmost characters from the supplied string. Note that if the supplied string contains fewer than Count characters, the function returns the entire string.


See Also

StrLeft


About

Unit

JclAnsiStrings


Donator

Anthony Steele


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page