> 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 want. Are you saying you want to loop
over the keys of a structure based on the value of one of the sub
structures? Ie:

s["alpha"] = structNew();
s["alpha"].x = 2;
s["alpha"].y = 3;

s["beta"] = structNew();
s["beta"].x = 1;
s["beta"].y = 9;

In the above example, I could say I want to output based on y, so the
key order would be alpha, beta, but if i ordered by the value of x, it
would be beta, alpha. If this is what you want, then you would want to
use structSort I believe.


> 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?

It means exactly what it says. It means if you create key X first, then
key Y, MX remembers it. You will see this if you do structKeyList or
structKeyArray. 

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email    : [EMAIL PROTECTED]
WWW      : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to