I would use a regular expression to break the string into an array and then loop the array looking at each item to see if it were in question. I think there is a Tokenizer similar to java somewhere in the framework.
Travis D. Falls | Consultant RAFT.Net IT | 860.547.4070 | [EMAIL PROTECTED] -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of Mike Appenzellar Sent: Tuesday, September 06, 2005 3:21 PM To: [email protected] Subject: [AspNetAnyQuestionIsOk] find element in string? have a string called test "1,2,3,4,5" How do I in asp.net/vb <http://asp.net/vb> say if variable is in the list test then perform whatever operation In coldfusion there is a function called listFind(test, "3") that does what I need. OR How can I convert the list into an array, because then I could do location = Values.BinarySearch(DataItem("id")) - If values was my array correct? [Non-text portions of this message have been removed] Yahoo! Groups Links ************************************************************************* PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. ************************************************************************* ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
