6.8.2.17 Strright Function

Syntax

strright (expression1, expression2)

Description

The strright function evaluates expression1, converts it to a string and returns the rightmost expression2 characters of expression1. If expression2 is less than 1, strright returns an empty string. If expression2 is larger than the number of characters in expression1, strright returns expression1.

Examples

strright ("Zip Beep",4) returns "Beep"

strright ("Zip Beep",0) returns ""

strright ("Zip Beep",20) returns "Zip Beep"