Wednesday, February 2, 2011

String split problem

sometimes string split works well on single characters, but when trying to using a string to split, problems may occur, to overcome this issue, use the following code will do the job:



Dim linecol() As String
linecol = line.Split(New String() {"&|&"}, StringSplitOptions.None)  'define a new string to use string as delimiter