LISTCHANGEDELIMS | |
Description
Changes a list delimiter. |
|
Returns
A copy of the list, with each delimiter character replaced by new_delimiter. |
|
Category
List functions |
|
Function syntaxListChangeDelims(list, new_delimiter [, delimiters ]) |
|
See also
ListFirst, ListQualify; "Lists" in Chapter 3, "Using ColdFusion Variables," in ColdFusion MX Developer's Guide |
|
Parameters
|
|
Example<h3>ListChangeDelims Example</h3> <p>ListChangeDelims lets you change the delimiters of a list. <!--- First, query to get some values for our list elements---> <CFQUERY NAME="GetParkInfo" DATASOURCE="cfdocexamples"> SELECT PARKNAME,CITY,STATE FROM Parks WHERE PARKNAME LIKE 'BA%' </CFQUERY> <CFSET temp = ValueList(GetParkInfo.ParkName)> <cfoutput> <p>The original list: <p>#temp# </cfoutput> <!--- Change the delimiters in the list ---> <CFSET temp2 = ListChangeDelims(Temp, "|:P|", ",")> <cfoutput> <p>After executing the statement <strong>ListChangeDelims(Temp, "|:P|", ",")</strong>, the updated list: <p>#temp2# </cfoutput> |
LIST | |
NEW_DELIMITER | |
DELIMITERS | |