|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Break up string, Comma Delimitedbefore, I need to break up a string, broken up everytime a comma is come across. In example: A, B, C, D, E This can either be broken up into newlines, like A B C D E or into an array. Any help anyone could offer would be greatly appreciated. See "Split" to create an array or "Replace" to change , to newline...
-- Patrice "JoeW" <wajo0***@stcloudstate.edu> a écrit dans le message de news: 1157468251.619318.116***@m73g2000cwd.googlegroups.com...Show quoteHide quote > Just wondering as I'm sure someone's done something similar to this > before, I need to break up a string, broken up everytime a comma is > come across. > > In example: > A, B, C, D, E > > > This can either be broken up into newlines, like > > A > B > C > D > E > > or into an array. > > Any help anyone could offer would be greatly appreciated. > JoeW wrote:
> Just wondering as I'm sure someone's done something similar to this If you only have to split by the comma's (or you have VB'2005), use > before, I need to break up a string, broken up everytime a comma is > come across. [String].Split. Dim s1 As String = "A, B, C, D, E" Dim s2 As String() = s1.Split( ", " ) If you have to split the string by the sequence <comma><space> /and/ you're still using VB'2003, then use Microsoft.VisualBasic.Split(), which allows for multiple-character delimiters. Imports VB = Microsoft.VisualBasic Dim s1 As String = "A, B, C, D, E" Dim s2 As String() = VB.Split( ", " ) HTH, Phill W.
Help with Adding A Row
is an object destroyed/closed when an exception occurs Adding event (mouseclick) handlers to GDI+ shapes? How to input characters that are not present in a keyboard to a VB source and multiple machines User Control constructors taking arguments? UI Challenge: How to create a real outliner (like Ecco, Grandview, etc) - SampleDisplay.bmp (0/1) newbe help please. paste disabled when i add a menubar in vb2005 Windows form is getting crashed VB.Net 2005 Book Recommendations Request |
|||||||||||||||||||||||