using your code on CF8 (8,0,0,176276), i get the structs returned in the same order (alpha by key name) each time. neither arbitrary nor random. i understand this isn't necessarily what you want... but it does seem to be consistent (for whatever that's worth).
On Fri, Sep 26, 2008 at 12:21 PM, Peter Boughton <[EMAIL PROTECTED]>wrote: > Does anyone know how to make CF provide a list of the names of Arguments in > the order provided and without using cfargument tag? > > StructKeyList/StructKeyArray returns an arbitrary order in CF8, and a > random order every time in CF7. > > Using Array functions on the Arguments scope results in a random order > every time in CF7 and CF8. > > > Run this code in CF to see the problem: > > <cffunction name="doStuff"> > <cfdump var="#Arguments#"/> > <cfdump var="#StructKeyList(Arguments)#"/> > <cfdump var="#StructKeyArray(Arguments)#"/> > <cfdump var="#ArrayToList(Arguments)#"/> > </cffunction> > > <cfset doStuff( a:'first' , b:'second' , c:'third' ) /> > <cfset doStuff( z:'first' , y:'second' , x:'third' ) /> > <cfset doStuff( a:'first' , b:'second' , x:'third' , y:'fourth' ) /> > <cfset doStuff( b:'first' , d:'second' , f:'third' ) /> > > > Both Railo and BlueDragon return the expected order, which makes it very > irritating that CF doesn't. > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:313142 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

