Monday, January 01, 2007

Convert First letters to uppercase .Net

First of all happy new year to everyone. Probably like most people I started the year with a hangover. Not helped by the fact I had to get up at half 8 to take my girlfriend to work!

Just a quick post for something useful I found, I wanted to change a name (ie joe bloggs) so that the first letters would be upper case. I found the VbStrConv class. It contains lots of good methods for string manipulation.
The one I needed was VbStrConv.ProperCase

Dim strNameAs String = "joe bloggs"
strNameAs = StrConv(strNameAs , VbStrConv.ProperCase)

No comments: