I have a problem with my cfml code. The function ListAppend()does not seem to work.
Here is the code on my .cfm page:
<cfset fruitList="apple, orange, banana">
<cfoutput>
fruitList before: #fruitList#<br>
</cfoutput>
<cfset temp = ListAppend(fruitList, "kiwi")>
<cfoutput>
fruitList after: #fruitList#<br>
</cfoutput>
But I always get this conclusion:
fruitList before: apple, orange, banana
fruitList after: apple, orange, banana
The same goes for ListPrepend()and ListInsertAt(). Why is this happening?
Any help is appreciated.
source
share