<!--- This example shows ListToArray --->
<HTML>
<HEAD>
<TITLE>ListToArray Example</TITLE>
</HEAD>

<BASEFONT FACE="Arial, Helvetica" SIZE=2>
<BODY  bgcolor="#FFFFD5">
<H3>ListToArray Example</H3>

<!--- Find a list of users who wrote messages --->
<CFQUERY NAME="GetMessageUser" DATASOURCE="cfsnippets">
SELECT	Username, Subject, Posted
FROM    Messages
</CFQUERY>

<CFSET myList = ValueList(GetMessageUser.UserName)>
<P>My list is a list with <CFOUTPUT>#ListLen(myList)#</CFOUTPUT> elements.
<CFSET myArrayList = ListToArray(myList)>
<P>My array list is an array with <CFOUTPUT>#ArrayLen(myArrayList)#</CFOUTPUT> elements.

</BODY>
</HTML>       
      
    
