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

Name

ListGetAt

Synopsis

                  ListGetAt(list, position [, delimiters])

Returns the list element specified by position. An optional delimiter can be specified if the list is delimited with a character other than the comma (the default). Note that the ListGetAt( ) function currently treats successive instances of the same delimiter as a single delimiter. Here’s an example that retrieves the third element of the list:

<cfset MyList = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday">
   
<cfoutput>
<b>List:</b> #MyList#<br>
<b>Third Element:</b> #ListGetAt(MyList, 3)#
</cfoutput>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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