help with spliting:still didn't get a help
-
hi there, basically i am new to VB.net and need a bit of help i have a string like "Track 01 (2.33)". this string is an item of of a combo box what i need to do is by clicking a button separating "Track 01" and put it in a list box and "2.33" in another list box... can you help me plaese?
-
hi there, basically i am new to VB.net and need a bit of help i have a string like "Track 01 (2.33)". this string is an item of of a combo box what i need to do is by clicking a button separating "Track 01" and put it in a list box and "2.33" in another list box... can you help me plaese?
I assume you know how to put the item into the list box. to split the string you can you String.Split or you can use Instr(), Left(),Mid(), and Right(). Dim pos As Integer Dim lstr As String Dim rstr As String Dim str As String str = "track 01 (2.33)" pos = InStr(str,"(") If pos <> 0 Then lstr = Left(str,pos) rstr = Right(str,Len(str)-pos) good luck