Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / VB

Convert Vertical List to String Array

0.00/5 (No votes)
6 Oct 2010CPOL 5.8K  
Pretty simple to ignore blank entries..Dim s As String = & String.Join(,, txt.SelectedTextt.Split(vbCrLf.ToCharArray, StringSplitOptions.RemoveEmptyEntries)) &
Pretty simple to ignore blank entries..

VB
Dim s As String = """" & String.Join(""",""", txt.SelectedTextt.Split(vbCrLf.ToCharArray, StringSplitOptions.RemoveEmptyEntries)) & """"

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)