Inserts an element in a list.
string.listInsertAt( position=number, value=string, delimiters=string, includeEmptyFields=boolean )
Returns: String
Argument |
Description |
position
number,
required
|
Position at which to insert element. The first list position is 1.
|
value
string,
required
|
An element or a list of elements.
|
delimiters
string,
optional
|
Characters that separate list elements. The default value is comma.
Alias: delimiter
|
includeEmptyFields
boolean,
optional
|
if set to true, empty values are included as well
|
Examples
list = "one,two,three,four,five";
res = list.listinsertat(3,"3");
writeDump(res);
res = list.listinsertat(4,"4");
writeDump(res);
See also