I think you need to look at how your array is structured.

If it's two dimensional, you want to delete items from the 2nd dimension
of the array.

The way you are doing it would delete the entire 2nd dimension.

<cfset session.cart[user] =
ArrayDeleteAt(session.cart[user],form.counter)>

______________________
steve oliver
atnet solutions, inc.
http://www.atnetsolutions.com


-----Original Message-----
From: Douglas Jordon [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 15, 2002 2:14 PM
To: CF-Talk
Subject: Deleting Row from Array


Hi,

I'm using ArrayDeleteAt to remove single items from a shopping cart(my
first):

<cfset session.cart = ArrayDeleteAt(session.cart,form.counter)>

It's removing everything from the array instead of one row. It's a two
dimensional array.

TIA,

Doug Jordon

______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to