The function returns a subtext from the string given by the index of the first character and a the number of characters.
Declaration
Blok kódu
language
esl
theme
Confluence
TEXT %SubStr(
TEXT in Text,
INT in idxFrom,
INT in numChars
)
Parameters
text
Text string.
idxFrom
Index of the first character in text string (from 1...).
numChars
Number
The number of characters in the result string.
Example
Blok kódu
language
esl
theme
RDark
%SubStr("some text", 2, 3) ; returns the following text : "someome"
If the value of the parameter idxFromoverruns the string length, the function returns an invalid value. If numCharsis greater than admissible number of characters, the text is to will be cut offtruncated:
Blok kódu
language
esl
theme
RDark
%SubStr("some text", 2, 100) ; returns the following text : "someome text"