Solved

How can I make a string to be Sentence Case?

Posted on 2002-07-03
3
367 Views
Last Modified: 2006-11-17
In vb.net you can convert a string to be upper or lower
by using string.toupper or string.toLower


Does anybody know if there is a function that make your string to be sentence case.

Suppose you have a txtSurname text box

and whenever the user input a surname (SMITH) YOU WANT TO TO CONVERT IT TO (Smith)change the first Letter to Capital and remaining to lower.

Any suggestions?

Thanks
Gabriel
0
Comment
Question by:Gabriel_Brienza
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
RichW earned 20 total points
ID: 7126646
StrConv("washington", vbProperCase) will convert to Washington.

I think this is what you're looking for.
RichW
0
 

Author Comment

by:Gabriel_Brienza
ID: 7126686
Thanks a lot
That was exactly what I was looking for.

Gabriel
0
 
LVL 4

Expert Comment

by:RichW
ID: 7126689
Glad I could help.  I was happy to see that they added this function to VB.

RichW
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question