How to change List delimiter in ColdFusion

ListChangeDelims() - change List delimiter

ListChangeDelims.cfm


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ListChangeDelims function example: how to change List delimiter</title>
</head>

<body>
<h2 style="color:hotpink">ListChangeDelims Function Example</h2>

<cfset ColorList="DarkRed,DarkSalmon,DarkSeaGreen">
<cfoutput><b>ColorList: #Colorlist#</b></cfoutput>

<br />
<cfset Temp = ListChangeDelims(ColorList,";",",")>
<cfoutput><b>Temp[New Delimiter ;]: #Temp#</b></cfoutput>
</body>
</html>






More ColdFusion examples