What I've always done is loop through the query like a structure of arrays:

for (i = 1; i <= query.recordcount; i = i + 1)
{
do_something_with(query.column[i]);
}

HTH.

--Ben Doom

Ryan Mitchell wrote:

> Hello
>
> I need to loop over a query in cfscript.
> I notice when I cfdump the query there is a record number in the left hand
> column, how would I loop using this as the identifier? I usually use cfloop
> but this is in the middle of a cfscript block :)
>
> Thanks,
> Ryan
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to