ColdFusion 9.0 Resources |
ListAppendReturnsA copy of the list, with value appended. If delimiter = "", returns a copy of the list, unchanged. See alsoListPrepend, ListInsertAt, ListGetAt, ListLast, ListSetAt; Lists in the Developing ColdFusion Applications Parameters
UsageColdFusion inserts a delimiter character before value. The following table shows examples of ListAppend processing:
Example<h3>ListAppend Example</h3> <!--- First, query to get some values for our list elements---> <cfquery name = "GetParkInfo" datasource = "cfdocexamples"> SELECT PARKNAME,CITY,STATE FROM PARKS WHERE PARKNAME LIKE 'AL%' </cfquery> <cfset temp = ValueList(GetParkInfo.ParkName)> <cfoutput> <p>The original list: #temp# </cfoutput> <!--- now, append a park name to the list ---> <cfset temp2 = ListAppend(Temp, "ANOTHER PARK")> |