@JoinList
Syntax
@JoinList(TEXTLIST1;LENGHTLIST2;SEPERATORLIST3);
Description
Implodes TEXT/TEXTLIST TEXTLIST1 taking into account FN/FNLIST LENGHTLIST2 and the separator string list TEXT/TEXTLIST SEPERATORLIST3 zu einem TEXT.
FN/FNLIST LENGHTLIST2:
Assigns a length to each element of TEXT/TEXTLIST TEXTLIST1 (same positions in the lists).
If 0 is specified for an element, the original length of the element is used.
If a length greater than the original length is specified for an element, the element is padded at the end with spaces up to the specified length.
If a length smaller than the original length is specified for an element, the element is truncated at the end to the specified length.
TEXT/TEXTLIST SEPERATORLIST3:
If a separator string is specified here for an element (same positions in the lists), it is placed after the corresponding element.
Example: @JoinList(TEXTLIST1;LENGHTLIST2;SEPERATORLIST3);
TEXTLIST1:="TEST1":"TEST 2":"TEST 3";
LENGHTLIST2:=4:6:8;
SEPERATORLIST3:="*":"-":"+";
Ret:=@JoinList(TEXTLIST1;LENGHTLIST2;SEPERATORLIST3);
@LogReport(Ret;3);
In this example, the following TEXT is returned to Ret :
"TEST*TEST 2-TEST 3 +"
Note : This text was machine-translated and may contain inaccuracies.
