<cfset listLoc = listFind(orderIDList, url.orderID) />
<cfif listLoc eq 1>
<cfset prevOrderID = "" />
<cfelse>
<cfset prevOrderID = listGetAt(orderIDList, listLoc - 1) />
</cfif>
<cfif listLoc lt listLen(orderIDList)>
<cfset nextOrderID = listGetAt(orderIDList, listLoc + 1) />
<cfelse>
<cfset nextOrderID = "" />
</cfif>

and then just use prevOrderID and nextOrderID as appropriate in your 
links.
 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322101
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