%HeadStr (%LeftStr) function


Function
The function returns a specified number of characters from a string, starting with the leftmost character.
Declaration
TEXT %HeadStr(
   TEXT in String, 
   INT in length
 )

 
 
 
TEXT %LeftStr(
   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 number defined in the parameter length, the function returns as many leftmost 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 length specified by the parameter length.
Napíšte komentár