I have a variable strStringToBeSplit which contains the following string (quotes included in the string): "\\esxvm1.facultystaff.local\Memory\Memory Overcommit (1 Minute Avg)"
I split this string using the \ character as the delimiter.
I expect the second value in the array storing the split text to return this string (quotes excluded): "esxvm1.facultystaff.local"
The second value of my array always comes up empty. What am I doing wrong?
Dim myValue As String = strStringToBeSplit
Dim strSplitValues() As String = Split(myValue, "\")
txtTextBox.Text = strSplitValues(1) ' comes out blank