Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text into Array of Strings 1

Status
Not open for further replies.

IlyaRabyy

Programmer
Nov 9, 2010
571
US
Colleagues,
I recall seeing some built-in function/method, that parses the given text (in RAM, not from a text file, e.g. not File.ReadAllLines(cPath2File)), but cannot find it in the VB .NET Help...
Could you please point me on the right article in Help?
TIA!

Regards,

Ilya
 
Do you mean something like this:

Code:
Dim str As String = "one,two,three"
Dim str2() As String = Split(str, ",")

For i As Integer = LBound(str2) To UBound(str2)
    MsgBox(str2(i))
Next
[ponder]

---- Andy

"Hmm...they have the internet on computers now"--Homer Simpson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top