Hi Matt

Thanks for the reply, you understood correctly. I will now have a play with 
your code and post my results. I kind of thought i would have to loop through 
the array, but could work out how to update, and at the right position.

Thank you

>Hey Jason, if you don't already know which position in the array the
>item id is located, then you'll need to loop through the array and
>find it. Once found, you are actually dealing with a structure, so
>updating is just a simple cfset. Something like this (assuming item id
>is in session and new zoneCost coming from a form variable):
>
><cfloop from="1" to="#arrayLen(Items)#" index="i">
>  <cfif Items[i].ID eq session.ID>
>    <cfset Items[i].zoneCost = form.zoneCost>
>  </cfif>
><cfloop>
>
>Does that make sense? I'm hoping I understand your question correctly.
>Your post seemed to have a lot of extraneous info that I wasn't sure
>if it was relevant.
>
>-Matt
>
>On Sun, Feb 8, 2009 at 5:36 AM, Jas
>> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319038
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to