I would appreciate any help. Below is the strings that are in Multiline Textbox and after that the code which i used.
BookName: Design Analysis, Version: 18
BookName: Metals and Non Metals, Version: 12
BookName: Surface Diagram, Version: 10
BookName: Elements and Compounds, Version: 10
---------------------------------------------------
Dim bookDetails As New List(Of String)(txtPBooks.Text.Split(Environment.NewLine))
For i As Integer = 0 To bookDetails.Count - 1
Dim myLists() As String = bookDetails(i).Split(",")
Dim _BookName, _Version As String
_BookName = myLists(0).ToString
_BookName = _BookName.Substring(_BookName.IndexOf(":") + 1)
_Version = myLists(1).ToString
_Version = _Revision.Substring(_Revision.IndexOf(":") + 1)
bookDetails.RemoveAt(i)
txtPBooks.Lines = bookDetails.ToArray
Next i
This post has been edited by nixdaemon000: 13 April 2009 - 05:22 PM

New Topic/Question
Reply




MultiQuote




|