Rexx - right String


Advertisements

This method returns a certain number of characters from the right of the string.

Syntax

right(str,count) 

Parameters

  • str − The source string.

  • count − The number of characters to return from the left of the string.

Return Value

This method returns a certain number of characters from the right of the string.

Example

/* Main program */ 
a = "Hello World" 
say right(a,5)  

When we run the above program, we will get the following result.

Output

World
rexx_strings.htm
Advertisements