RE: Structure order in MX

2003-01-23 Thread mark brinkworth
The Macromedia documentation is inconstant on this point, and the migration guide as far as I can tell is wrong. There is a comment on livedocs re this So, what is meant by the docs saying that MX returns structure keys in the order they are created as opposed to CF5 doing it alpha?

Structure order in MX

2003-01-22 Thread E. Keith Dodd
I am probably misunderstanding the MX docs regarding a structure's order. MX returns structure keys in the order they are created. CF5 returned keys in alpha order. Am building a structure of Stallions from a query that has ORDER BY SortOrder. SortOrder is a number (byte) field in an Access

RE: Structure order in MX

2003-01-22 Thread Raymond Camden
] WWW : www.camdenfamily.com/morpheus Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: E. Keith Dodd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:04 PM To: CF-Talk Subject: Structure order in MX I am

Re: Structure order in MX

2003-01-22 Thread E. Keith Dodd
Subject: RE: Structure order in MX The reason you see different output when you use your manaul loop compared to cfdump is that cfdump gets the keys and then sorts the keys. === Raymond Camden, ColdFusion Jedi Master

RE: Structure order in MX

2003-01-22 Thread Raymond Camden
So, if I want to have the structure keys (StallionCode in this case) come out in my loop in the order I want tthem, I'll have to do a new sort as I did in CF5? My ordering the query by SortOrder before creating the structure isn't of value then, right? I'm a bit confused by what you

Structure order in MX

2003-01-22 Thread Brad Howerter
I'm sure you're right that that is what it means. But it doesn't behave that way. The following code returns C, D, B. cfset a = structNew() cfset a.b = 1 cfset a.c = 2 cfset a.d = 3 cfloop collection=#a# item=k cfoutput#k#/cfoutputbr /cfloop cfoutput#structKeyList(a)#/cfoutput A