%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.


0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .