Solved

How can I make a string to be Sentence Case?

Posted on 2002-07-03
3
357 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

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…
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

914 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now