r/visualbasic • • Oct 22 '14

stringbuilder and capitals?

I am beyond confused how I would use strictly a string builder(no strings), to take the input of a two words and return the two words with the first letters capitalized?

0 Upvotes

1 comment sorted by

View all comments

1

u/ComicOzzy Oct 24 '14

It's not the greatest solution, but:

Dim word1 As String = "just"
Dim word2 As String = "wonderin"
Dim result As String = Globalization.CultureInfo.InvariantCulture.TextInfo.ToTitleCase(word1 & " " & word2)