Check out String.Split
On 9/6/05, Falls, Travis D (HTSC, CASD) <[EMAIL PROTECTED]> wrote: > > 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> <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 Links > > > > > > > -- Dean Fiala Very Practical Software, Inc http://www.vpsw.com [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/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/
