listSetAt
Replaces the contents of a list element.
listSetAt(list, position, value [, delimiters]) → returns string
Argument Reference
list string Required
position numeric Required
value string Required
delimiters string
Default: ,
,
Examples Sample code invoking the listSetAt function
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
© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/listsetat