Name
ListInsertAt
Synopsis
ListInsertAt(list, position, value
[,delimiters
])
Inserts
value
into list at the specified position.
An optional delimiter can be specified if the list is delimited with
a character other than the comma (the default). The following example
inserts a value into a list:
<cfset MyList = "Monday,Tuesday,Thursday,Friday,Saturday,Sunday"> <cfset MyNewList = ListInsertAt(MyList, 3, "Wednesday")> <cfoutput> <b>Original List:</b> #MyList#<br> <b>New List:</b> #MyNewList# </cfoutput>
Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.