Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

%HeadStr (%LeftStr) function


Function
The function returns a specified number of characters from a string, starting with the leftmost character.
Declaration


Blok kódu
languageesl
themeConfluence
TEXT %HeadStr(
   TEXT in String, 
   INT in length
 )
 
 
 


Blok kódu
languageesl
themeConfluence
TEXT %LeftStr(
   TEXT in String, 
   INT in length
 )
Parameters


stringText string that function returns characters from.
lengthNumber 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.