Put a breakpoint on dt.Rows.Add(tRow) and then check the value of each column whenever it breaks. Do you have all the values there?
Also I suspect this line is causing the problems.
On what character do you want to split the string?Code:Dim split As String() = line.Split(New [Char]() {})
Try replacing it with this line and see if it works:
vb Code:
Dim split() As String = Strings.Split(line, ";") '<-- replace semicolon with your separator character.




icon on the left of the post.
Reply With Quote
