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

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

<!--- First, query to get some values for our list. --->
<CFQUERY NAME="GetParkInfo" DATASOURCE="cfsnippets">
SELECT 	PARKNAME,CITY,STATE
FROM	Parks
WHERE	PARKNAME LIKE 'CH%'
</CFQUERY>
<CFSET temp = ValueList(GetParkInfo.ParkName)>
<CFSET insert_at_this_item = ListGetAt(temp, "3", ",")>

<CFOUTPUT>
<P>The original list: #temp#
</CFOUTPUT>
<!--- Now, insert an item at position three. --->
<CFSET temp2 = ListInsertAt(Temp, "3", "my Inserted Value", ",")>

<CFOUTPUT>
<P>The changed list: #temp2#
<BR><I>Note that <B>#insert_at_this_item#</B> has moved from 
position three of the list to position four.</I>
</CFOUTPUT>

</BODY>
</HTML>       
  
