Name

ListLen

Synopsis

                  
                  ListLen(list [, delimiters])

Returns the number of elements in the specified list. An optional delimiter can be specified if the list is delimited with a character other than the comma (the default). Example:

<cfset MyList = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday">
   
<cfoutput>
<b>List:</b> #MyList#<br>
<b>Number of elements:</b> #ListLen(MyList)#
</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.