You've placed <cfset itemIDList=""> inside your loop, clearing it out on
each iteration.  Move it outside the <cfloop> and you're in business.

- Jim

-----Original Message-----
From: Owens, Howard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 7:55 PM
To: CF-Talk
Subject: ListAppend not Appending


I hate shit like this ... how many times have I used ListAppend?

But I just can't see why this isn't appending ... each new value is simply
overwriting the first value


        <cfloop index="ThisOrder" from="1" to="#ArrayLen(cart)#">

        <cfset itemIDList="">
        <cfset itemIDList="#ListAppend(itemIDList,
"#cart[ThisOrder].ITEM_ID#")#">

        <cfoutput>list: #itemIDList#</cfoutput>
                        <cfoutput>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Owens
Internet Operations Coordinator
InsideVC.com/Ventura County Star
[EMAIL PROTECTED]
AIM: GoCatGo1956
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to