RE: Cfloop collection

2005-04-29 Thread S . Isaac Dealey
Glad to help. :) > Thanks for helping me understand this correctly. > Mark s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm

RE: Cfloop collection

2005-04-29 Thread Mark Leder
Thanks for helping me understand this correctly. Mark -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Friday, April 29, 2005 9:35 AM To: CF-Talk Subject: Re: Cfloop collection > > > > - Select A Company collection="#SESSION.compan

RE: Cfloop collection

2005-04-29 Thread Mark Leder
Thanks, that worked. I'm not using the query directly in this instance as I need to pass the query to a different page for further processing. -Original Message- From: Pascal Peters [mailto:[EMAIL PROTECTED] Sent: Friday, April 29, 2005 9:32 AM To: CF-Talk Subject: RE: Cfloop colle

Re: Cfloop collection

2005-04-29 Thread S . Isaac Dealey
> > > > - Select A Company >item="companyID"> >value="#SESSION.companyIDList.companyID#">#SESSION.company > IDList.companyName > # > > > Hi mark... The collection loop is much like an array loop, you still have to index the structure (unlike a query which automatically assumes [cu

RE: Cfloop collection

2005-04-29 Thread Pascal Peters
#SESSION.companyIDList[companyID].companyName # But why don't you just use the query? Pascal > -Original Message- > From: Mark Leder [mailto:[EMAIL PROTECTED] > Sent: 29 April 2005 15:19 > To: CF-Talk > Subject: Cfloop collection > > Hi all, > I want to loop a structure and present the

Re: CFLOOP COLLECTION looping in wrong order

2005-03-10 Thread S . Isaac Dealey
Incidentally MX also introduced StructSort() which does the same thing for the collection loop because CF5 collection loops used to be sorted automatically and they figured this was the fix (I've never understood why they didn't just make this automatic in the cfloop tag for backward compatibility.

RE: CFLOOP COLLECTION looping in wrong order

2005-03-10 Thread Damien McKenna
Thanks for that Barney. I did a search and found the same thing but it still listed everything in that weird order. I played around with some other things and finally found it, but for the life of me the change I made didn't seem to make sense that it would affect the sort order. Ah well, its wo

Re: CFLOOP COLLECTION looping in wrong order

2005-03-10 Thread Barney Boisvert
The order of a struct's elements is undefined. If you want an ordered collection, use an array. If you really need an ordered struct (I'm sure there's a legit reason somewhere), you'd have to make some kind of complex data type that combines a struct and an array. Note that these two loops are e