• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

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>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint