%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
stringThe text string that function returns characters from.
lengthThe number of characters returned from the text string.
Note

If the string is longer than 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 to the result string according to the number specified by the parameter length.

Napíšte komentár