Many thanks all, the negative step is something which simply had never even 
occured to me!

T
-----Original message-----
From: "Bobby Hartsfield" [EMAIL PROTECTED]
Date: Thu, 15 Nov 2007 20:37:34 +0000
To: CF-Talk [email protected]
Subject: RE: Cfoutput query backwards

> Yes you can use a cfloop from and to with a negative step...
> 
> <cfloop from="#query.recordcount#" to="1" step="-1" index="i">
> #query['columnname'][i]#
> </cfloop>
> 
> ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> Bobby Hartsfield
> http://acoderslife.com
> 
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293427
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to