> > > There are some array functions you can use on > > > Arguments in MX but not all -- as a matter of > > > fact, there are array functions which could be > > > used on the Arguments array in CF 5 that now > > > can't be used on them in MX (imho this is a > > > bug), for instance, you can't use arrayprepend, > > > arrayappend or arrayinsertat on an array in CFMX > > > (which I had been using for several wrapper > > > functions until I realized they didn't work in > > > MX). But ArrayLen() still works. > > > > I'm not sure I understand. I've successfully used > > ArrayAppend on arrays in CFMX - this is part of the > > Advanced CF Development course curriculum, so I'm > > pretty sure that it works. I haven't tried to use > > these functions on the Arguments array, but I > > wouldn't expect them to work there - it seems that > > the Arguments scope should logically be read-only > > to me. > > The array wasn't read-only in CF 5 (and isn't read-only > in CF MX) -- in CF 5 it worked much the way the arguments > array works in JavaScript ...
OK. I misread the intent of your original statement a bit, I guess, in which you stated that you can't use the array functions on an array in CFMX. To be honest, I'm not sure why MM decided to expose the Arguments scope as both an array and a structure, either. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4