Forum Moderators: open
Impnum_I1._a.
' The string to split
Dim myString As String = "Impnum_I1._a."
' Split the string
Dim splitString As String() = myString.Split("_")
' Iterate through the string collection
For Each s As String In splitString
Response.Write(s)
Next
' Get number (count) of seperate strings
Dim splitCount As Integer = splitString.Length
' Iterate by using splitCount
For i As Integer = 0 To splitCount - 1
Response.Write(splitString(i))
Next
' Or get the strings one by one manually
Dim firstString As String = splitString(0)
Dim secondString As String = splitString(1)
Dim thirdString As String = splitString(2)