Product Site

5.1.7.85. right

Returns a string of length length containing the rightmost length characters of the receiving string. The string returned is padded with pad characters, or truncated, on the left as needed. The default pad character is a blank. The length must be a positive whole number or zero.
Example 5.121. String class — right method
"abc  d"~right(8)     -->    "  abc  d"
"abc def"~right(5)    -->    "c def"
"12"~right(5,"0")     -->    "00012"