I would think it would work. However you lose the association with the second dimension. i.e. if you were sorting it by the first dimension and then wanted display data from the second you'd be out of luck.
</rob> -----Original Message----- From: Timothy Heald [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 3:26 PM To: CF-Talk Subject: RE: Array questions So will arrayAvg(myArray[1]) work? NM I am going to play some with it tonight. Tim Heald ACP/CCFD :) Application Development www.schoollink.net > -----Original Message----- > From: Dave Watts [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 24, 2002 3:27 PM > To: CF-Talk > Subject: RE: Array questions > > > > Man we have all these great array functions, and they only > > work on single dimension arrays. > > Well, this is to be expected, in that it doesn't make any sense to perform > these sort of operations on a multidimensional array. What would it mean, > after all, to sort a two-dimensional array? How would you sort the outer > dimension? It's worth pointing out that a two-dimensional array is nothing > more than an array in which each element is itself an array - that is, > there's no such thing as a multidimensional array, really! > > However, there's nothing to stop you from using an array function on any > array, even if that array is an element within another array. This is what > people mean typically, when they talk about using array functions on > multidimensional arrays. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > voice: (202) 797-5496 > fax: (202) 797-5444 > ______________________________________________________________________ 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/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

