ADO DOT NET
Centurion
- Joined
- Dec 20, 2006
- Messages
- 160
Hi,
I need a function that convert the first letter of each input word to upper case.
I have written this one:
But however, this only converts the first letter of the first word to upper case.
The problem is that I usually become very confused when working with such string operations!
Is anyone able to help me to complete this function?
Any idea?
Thanks
I need a function that convert the first letter of each input word to upper case.
I have written this one:
Visual Basic:
Private Function FirstWordUp(ByVal Input As String) As String
FirstWordUp = Input.Substring(0, Input.IndexOf(" ")).ToUpper + Input.Substring(Input.IndexOf(" "), Input.Length - Input.IndexOf(" "))
End Function
The problem is that I usually become very confused when working with such string operations!
Is anyone able to help me to complete this function?
Any idea?
Thanks