Array problems #2
Since I have nothing to load into the array, yet, my last functional directive
was
cfset SESSION.Report.Lats = ArrayNew(2)
The next piece of related offending code is
cfif ArrayLen(SESSION.Report.Lats) GT 0
Lateral reporting structure:
ul
cfloop
Larry,
Not sure exactly what you're going for. But rather than go into array usage
(and looping a collection), which you can probably learn better elsewhere,
maybe there's a simpler way to attack the problem.
In the end, you seem to simply want to go over a query result:
cfquery name=GetLats
-Ursprüngliche Nachricht-
Von: Stephens, Larry V [mailto:steph...@indiana.edu]
Gesendet: Freitag, 5. Februar 2010 15:10
An: cf-talk
Betreff: SPAM-LOW: Arrays - humbug! - Part 2
Array problems #2
Since I have nothing to load into the array, yet, my last functional
directive was
cfset
To: cf-talk
Subject: Re: Arrays - humbug! - Part 2
Larry,
Not sure exactly what you're going for. But rather than go into array usage
(and looping a collection), which you can probably learn better elsewhere,
maybe there's a simpler way to attack the problem.
In the end, you seem to simply want
For further manipulation, it's also sometimes handy to remember that a query
object is essentially a struct of arrays, with the selected columns at
struct keys.
So you can also do things like:
cfif Session.Report.lats.recordCount GT 0
cfloop from=1 to #Session.Report.lats.recordCount# index=i
5 matches
Mail list logo