Name

ListDeleteAt

Synopsis

ListDeleteAt(list, position [, delimiters ])

Deletes an element from a list occupying the specified position. An optional delimiter can be specified if the list is delimited with a character other than the comma (the default). Here’s an example that deletes the list element occupying the fifth position in the list:

<CFSET MyList = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday">
<CFSET NewList = ListDeleteAt(MyList, 5)>

<CFOUTPUT>
<B>Original List:</B> #MyList#<BR>
<B>New List:</B> #NewList#
</CFOUTPUT>

Get Programming ColdFusion 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.