hey killer what are you trying to do? Are you trying to remove the | or are you trying to make seperate strings of visual | basic? If the latter see Stanav post.
Both
Code:Dim testString As String = "Visual | Basic | is | easy" Dim foo() As String = testString.Split("|"c) Debug.WriteLine("'Debug Output") For x As Integer = 0 To foo.Length - 1 Debug.WriteLine("'" & foo(x)) Next testString = testString.Replace("|", "") Debug.WriteLine("'" & testString) Stop 'Debug Output 'Visual ' Basic ' is ' easy 'Visual Basic is easy




Reply With Quote