Sounds like this is what you want:

<cfloop query="getList">
  <cfset x = getList.colName[currentRow] />
</cfloop>

This will do the same thing, though with this format you can go backwards,
run rows twice, skip rows, and generally do a lot of other crazy stuff:

<cfloop from="1" to="#getList.recordCount#" index="currentRow">
  <cfset x = getList.colName[currentRow] />
</cfloop>

barneyb

---
Barney Boisvert, Senior Development Engineer
AudienceCentral
[EMAIL PROTECTED]
voice : 360.756.8080 x12
fax   : 360.647.5351

www.audiencecentral.com


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 12, 2003 7:32 PM
> To: CF-Talk
> Subject: Get current row value in CFLOOP
>
>
> I forgot how to do this..
>
> Have a loop, want to grab the current value of an item from that row.
>
> I went with  loopname.currentrow.topic_id
>
> Error
>
> Is it loopname.topic_id[currentrow] or something that that instead??
>
> Thanks!!!
>
> Regards,
>
> Eric J. Hoffman
> DataStream Connexion
> www.datastreamconnexion.com
>
>
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Reply via email to