Looking to use indexof in a string that contains Lastname, Firstname. if this is used
it returns Lastname. However, it is the next step that is a puzzle to me as to how to pick up the Firstname excluding the comma space after the comma.
Any help is appreciated. thanks.
Code:
Dim sSearch As String = frmSearch.lstDisplay.SelectedItem.ToString
Dim sLast As String = sSearch.Substring(0, sSearch.IndexOf(",")).Trim
Any help is appreciated. thanks.