I would like to take each individual line of text from a multiline textbox and put it into a 1 column dataset where each text line would be a row within the dataset. Does anyone have an idea how to best accomplish this?
For Each s As String In TextBox1.Lines
Dim r As DataRow = MyDataSet.Tables("SomeTable").NewRow
r.Item("SomeColumn") = s
MyDataSet.Tables("SomeTable").Rows.Add(r)
r = nothing
Next
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.