> S.Isaac Dealey wrote:

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

Well I was thinking of a reasonably clean/simple way to handle
grouping -- while this works, it's not really syntactically comparable
to <cfoutput group="column1"> <cfoutput></cfoutput></cfoutput> --
essentially what you just said.

s. isaac dealey   954.927.5117

new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework
http://www.sys-con.com/story/?storyid=44477&DE=1
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to