Use #myquery.mycolumn[thisrecord]#. Each column can be used as an array.
David Cummins
Geoff Hoffman wrote:
>
> I want to use CFLOOP such as
>
> <CFLOOP INDEX="thisRecord" FROM="1" TO="#myquery.recordCount#">
>
> instead of CFOUTPUT QUERY= to display a series of returned records.
>
> How do you use the value stored in thisRecord (the incrementing number)
> to access the correct record? I have it looping the right number
> of times, but I can only output the first record over and over.
>
> TIA,
>
> [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists