Of course, you wan't to wrap the call to this UDF in a cflock since it reads from the session scope.
======================================================================= Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email : [EMAIL PROTECTED] Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Howie Hamlin [mailto:[EMAIL PROTECTED]] > Sent: Saturday, March 16, 2002 4:35 PM > To: CF-Talk > Subject: Re: UDF question > > > Thanks for the reply. I wound up using: > > function BasketItemCount() > { > var totitems=0; > var currentRow = 1; > for (; currentRow lte session.basket.RecordCount; > currentRow = currentRow + 1) > { > totitems = totitems + session.basket["Quantity"][currentRow]; > } > return totitems; > } ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists