MID
Returns a part of a text.
Positions start at 0. Near the end you get fewer characters. A start behind the end gives an empty text. A negative start or length raises INVALID_ARGUMENT.
Parameters and results
textSTRING: the textstartINTEGER: the position of the first characterlengthINTEGER: the number of characters (optional, default the rest of the text)- result
resultSTRING: the part of the text
Example
c0de
CALL c0de/strings/MID
PARAMETER text name ;
PARAMETER start 2 ;
PARAMETER length 3 ;
RESULT result part