Name

ListChangeDelims

Synopsis

                  
                  ListChangeDelims(list, new_delimiter [, delimiters])

Changes the delimiters used in the list to the specified new delimiters. The following example changes the delimiters in the list from commas to pipes (|):

<cfset MyList = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday">
<cfset NewList = ListChangeDelims(MyList, '|', ',')>
   
<cfoutput>
<b>Old Delimiters:</b> #MyList#<br>
<b>New Delimiters:</b> #NewList#
</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.