Hari ini :
You are not log in? >> Please Login

ArrayToList function example: how to convert an Array to a List

ArrayToList.cfm






<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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>







http://coldfusion-example.blogspot.com/

About this entry

 

Author Contact | Powered By Blogspot | © Copyright  2009