括號內該打甚麼才能造到Lab3.6的效果?
Dim fullName, firstName, lastName As String
Dim n As Integer
fullName = txtName.Text
n = fullName.IndexOf(" ")
firstName = fullName.Substring( )
lastName = fullName.Substring( )
更新1:
With lstResults.Items .Clear() .Add("First name: " & firstName) .Add("Your last name has " & _ lastName.Length & " letters.") 剛才打打不哂,現補充。 感激不盡。