ArrayToList() - convert an Array to a List
ArrayToList.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ArrayToList function example: how to convert an Array to a List</title>
</head>
<body>
<h2 style="color:Green">ArrayToList Function Example</h2>
<cfset ColorArray = ArrayNew(1)>
<cfset Temp=ArrayAppend(ColorArray,"BlanchedAlmond")>
<cfset Temp=ArrayAppend(ColorArray,"Blue")>
<cfset Temp=ArrayAppend(ColorArray,"BlueViolet")>
<cfdump var="#ColorArray#" label="ColorArray">
<br />
<cfset ColorList=ArrayToList(ColorArray)>
<cfoutput><b>Color List: #ColorList#</b></cfoutput>
</body>
</html>