Replaces the contents of a list element.
listSetAt(list, position, value [, delimiters])
→ returns string
,
Replaces the 2nd list element with 'foo'
listSetAt("bar,lorem,ipsum", 2, "foo")
Expected Result: bar,foo,ipsum
Inserts 'foo' into the list with a custom delimiter
listSetAt("bar|lorem,ipsum|me|something", 2, "foo", "|")
Expected Result: bar|foo|me|something
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.