- Home
·
- String Manipulation
·
- Capitalizes first letter in a string and sets all other characters lowercase in one line of code.
Capitalizes first letter in a string and sets all other characters lowercase in one line of code.
Capitalizes first letter in a string and sets all other characters lowercase in one line of code.
Rate Capitalizes first letter in a string and sets all other characters lowercase in one line of code.
(2(2 Vote))
Public Function Capitalize(Str As String) As String
Capitalize = UCase$(Strings.Left$(LCase$(Str), 1)) & Strings.Right$(LCase$(Str), Len(Str) - 1)
End Function
Capitalizes first letter in a string and sets all other characters lowercase in one line of code. Comments
No comments yet — be the first to post one!
Post a Comment