> There are still a few things that are difficult (if not impossible) to
> accomplish with cfscript in spite of cffunction tags... such as a
> generic cfscript equivalent of cflock. Obviously there's no equivalent
> to cfsavecontent, and just plain forget using query grouping for
> display in cfscript.
Query grouping is really not that hard in cfscript. Pseudocode:
y = query.recordcount;
for (x = 1 ; x LTE y ; x = x + 1)
{
WriteOutput(query.column1[x]);
WriteOutput(query.column2[x]);
while (x LT y and query.column2[x] is query.column2[x + 1])
{
x = x + 1;
WriteOutput(query.column2[x]);
}
}
But obviously the time you save with cfloop is more then enough
to just buy more iron.
Jochem
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

