Right - return characters from the right side of a string

Return to Introduction  Previous page  Next page

$return = right(string,length)

Where:

 

$returnthe characters from the right side of the string.
stringthe input string of characters.        
lengththe number of characters to return.        If 0 is specified, no characters are returned. If the length is greater than the input string length, the entire string is returned.

 

string and length may be variables.

The Right command returns the specified number of characters from the right side of the string.

Examples

$return = right("abcefgh",4)

$return = right($text,$length)

 

See Also:

 

Left

Mid

Script Command Summary

Script Variables

Using the Scripting Language


TN3270 Plus is continually being improved. To learn more about the latest enhancements, please review our Version History web page.