hey guys. i've got this code where i've gotta separate a full name and tell the user which is which (meaning "this name is first, this name is middle, and this is your last name" type stuff). Well i've got the first part working where the program tells you what part of the name you're using but i've also got to tell the user this:
Short length names are defined as 6 or fewer letters.
Standard length names are defined as 7 to 10 letters.
Long length names are defined as having more than 11 letters.
this meaning i've got to say: "your first name is Michael, it has 7 letters, it is standard length. your middle name is john, it has 4 letters, it is short length. your last name is kirkpatrick, it has 11 letters, it is long length."
help? here's the code
Private Sub xCalcButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles xCalcButton.Click
'go for it!
Dim i As Integer
Dim wholename As String
Dim namepart(3) As String
wholename = Me.xEnterTextBox.Text
For i = 0 To Me.xEnterTextBox.Text.Length - 1
namepart = wholename.Split(" ")
Next
Me.xAnswerLabel.Text = "Your first name is " & namepart(0) & ". " & _
"Your middle name is " & namepart(1) & ". " & "Your last name is " & namepart(2) & ". "
End Sub
Thanx in advance for any help to get me over the hump