Solved

How can I make a string to be Sentence Case?

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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 …

832 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