If I recall ListFind will return the numeric location of the list (if
found). Using that numeric you can do a ListGetAt to get the next and
previous.

<cfset listLoc = ListFind(myList,5)>
<cfset nextItem = listGetAt(myList,listLoc+1)>
<cfset prevItem = listGetAt(myList,listLoc-1)>

Something like that anyway... syntax may not be right but you get the idea


On Fri, May 1, 2009 at 10:13 AM, Scott Stewart <[email protected]>wrote:

>
> Hey all..
>
>
>
> I have a ColdFusion list of orderIDs generated from a query..
>
> The list drives a pair of hrefs (next and previous)
>
>
>
> The user will click on a link from another page which opens an order
> detail.
>
> At the top of the detail page are the next and previous links.
>
>
>
> How can I determine the next item in the list and the previous item in the
> list, given that the selected item is not list first or list last..
>
>
>
> Thanks
>
>
>
> sas
>
>
>
> --
> Scott Stewart
> ColdFusion Developer
> 4405 Oakshyre Way
> Raleigh, NC 27616
> (h) 919.874.6229 (c) 703.220.2835
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:322103
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