G
Guest
I know I'm reinventing the wheel here, and not very elegantly. Can somebody show me a less embarrassing way of coding this
Dim s1 As String = "Dr. John Smith".Tri
Dim s2 As String = s
txtFirstString.Text = s
Dim i1 As Integer = s1.LastIndexOf(" "
s1 = s1.Substring(i1 + 1, s1.Length - i1 - 1
s1 = s1 & ",
s1 = s1 & s2.Substring(0, i1
txtSecondString.Text = s
txtSecondString.Text = Smith, Dr. Joh
thanks
polynomial5d
Dim s1 As String = "Dr. John Smith".Tri
Dim s2 As String = s
txtFirstString.Text = s
Dim i1 As Integer = s1.LastIndexOf(" "
s1 = s1.Substring(i1 + 1, s1.Length - i1 - 1
s1 = s1 & ",
s1 = s1 & s2.Substring(0, i1
txtSecondString.Text = s
txtSecondString.Text = Smith, Dr. Joh
thanks
polynomial5d