Android Question Capital first letters


Active Member
Licensed User
Longtime User
Good morning everyone. I should know this one because I have used it in the past but now I can't find where I used it.

What is the function that capitalises the first letter of a word as in john becomes John etc., similar to vbProper

Thanks for looking


Well-Known Member
Licensed User
Longtime User
I use this one, may be there more efficient ways to do it...
Sub Capitalize(t As String) As String
    Dim s,r  As String
    s = t.SubString2(0,1)
    r = t.SubString2(1, t.Length)
    Return s.ToUpperCase & r
End Sub
Upvote 0