i don't think this will work because you don't know how long the string
before or after the original substring is. so how would you know what
position to specify for ListGetAt()? that's why i think GetToken() would
work...
-----Original Message-----
From: Mark Woods [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 6:38 AM
To: CF-Talk
Subject: Re: Find position in a list
use the listFind() and listGetAt() functions
At 02:28 PM 3/23/2001, you wrote:
>Hi
>
>Let's imagine I've got a list of id numbers and a specific id number within
>this list. How could I output the "next" id number in the list and the
>"previous" id number in the list, depending on the id number I have?
>
>e.g. List = 23,24,27,30,543,675,980 AND id=543 - I need to get either 30 or
>675, then if I get 675 I need to get 543 or 980, etc. etc.
>
>TIA
>
>James
>
>"The Force is strong in this one..."
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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