Page tree
Skip to end of metadata
Go to start of metadata

%TailStr (%RightStr) function


Function
The function returns a specified number of rightmost characters from a string.
Declaration
TEXT %TailStr(
   TEXT in string, 
   INT in length
 )

 
 
 
TEXT %RightStr(
   TEXT in string, 
   INT in length
 )

Parameters
string Text string that function returns characters from.
length Number of characters returned from the text string.

Note

If the string is longer than the the number defined in the parameter length, the function returns as many last characters as specified by the parameter length.

If the string is shorter than the number defined in the parameter length, spaces are added into the result string according to the number specified by the parameter length.


Write a comment…