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

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>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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