Wednesday, July 7, 2010

How to capitalize a string

Ever needed to capitalize a string and keep the rest lower case? here's my implementation...
I use this function when the OnExit event is triggered in a edit control – usually in user name/password fields etc.