Right I have a combo box which has entries like thie;
[3] DOE JOHN
I want to use spilt to extract the 3. My code below when using the combobox selecteditem method gives me a blank message box, but if I hard code the text I get the 3?
Am I missing something here?
[3] DOE JOHN
I want to use spilt to extract the 3. My code below when using the combobox selecteditem method gives me a blank message box, but if I hard code the text I get the 3?
Am I missing something here?
Visual Basic:
Dim strString As String = Me.cboFullName.SelectedItem
'Dim strString As String = "[3] DOE JOHN"
Dim strDelimiterList As String = "[] "
Dim strDelimiter As Char() = strDelimiterList.ToCharArray()
Dim strSplit As String() = Nothing
strSplit = strString.Split(strDelimiter, 3)
MessageBox.Show(strSplit(1))