listInsert: Difference between revisions
Jump to navigation
Jump to search
(New page: ==Function listInsert== Inserts a value into the Macros:string list at the specified index. If a delimiter is not specified then the default value of ',' is used. The index for lists...) |
No edit summary |
||
Line 5: | Line 5: | ||
===Usage=== | ===Usage=== | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: | [h: newList = listInsert(list, index, value)] | ||
[h: | [h: newList = listInsert(list, index, value, delim)] | ||
</source> | </source> | ||
Revision as of 10:25, 13 December 2008
Function listInsert
Inserts a value into the string list at the specified index. If a delimiter is not specified then the default value of ',' is used. The index for lists starts at 0
Usage
[h: newList = listInsert(list, index, value)]
[h: newList = listInsert(list, index, value, delim)]
Example
[r: listInsert("This, a , test", 1, "is")]
Returns This, is, a, Test
[r: listInsert("This: a: test", 1, "is", ":")]
Returns This: is: a: test