Re: Getting Record Number within a Looping Query

2010-11-01 Thread Leigh
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

Re: Getting Record Number within a Looping Query

2010-11-01 Thread Sean Corfield
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

Getting Record Number within a Looping Query

2010-11-01 Thread Rick Colman
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.