<cfloop list="#itemList#" index="thisItem">
<cfset itemNo = Replace(thisItem, "item_id","")>
<cfoutput>#itemNo#</cfoutput>
</cfloop>

On Fri, 11 Jun 2004 08:30:51 -0700 (PDT), cf coder
<[EMAIL PROTECTED]> wrote:
>
> Hello everybody,
>
> Please can someone show me how to do this. I have a
> comma separated list.
>
> <cfset itemList = item_id1, item_id2, item_id3,
> item_id11, item_id12, item_id13.
>
> I want to loop through this list and get the
> character(s) after the "item_id" (in this case:
> 1,2,3,11,12,13)
>
> Here is the code I've written:
>
> <cfset total = 2>
> <cfloop from="1" to="#total#" index="thisItem">
> <cfset itemNo =
> Right(ListGetAt(itemList,thisItem),Find("item_id",itemList))>
> <cfoutput>#itemNo#</cfoutput>
> </cfloop>
>
> I would really appreciate your help.
>
> Regards,
>
> cfcoder
>
> __________________________________
> Do you Yahoo!?
> Friends.  Fun.  Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to