It depends on whether you mean a literal loop (ie cfloop) or a cfoutput loop.
Both populate a special variable called #currentRow# when iterating through a
"query". Limiting the number of iterations works different for each tag:
http://livedocs.adobe.com/coldfusion/8/Tags_m-o_16.html
http://liv
queryName.currentRow
On Mon, Nov 1, 2010 at 3:53 PM, Rick Colman wrote:
> If I am looping over a query, how do I get the current record number for
> the loop?
>
> e.g. If I am looping for a fixed number of iterations, I can use an
> index="loopcount" and get the current loop number.
>
> How do I
If I am looping over a query, how do I get the current record number for
the loop?
e.g. If I am looping for a fixed number of iterations, I can use an
index="loopcount" and get the current loop number.
How do I do this for a query?
TNX.
rick.
3 matches
Mail list logo