Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / August 2004

Tip: Looking for answers? Try searching our database.

propercase

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dennis - 15 Aug 2004 10:15 GMT
ProperCase for normal usage is simple:
       Dim s, s1, s2 As String
       s = "DENNIS TURNER"
       s1 = StrConv(s, VbStrConv.ProperCase)

Even with names it's simple Turner, Dennis
Turner, Mr. Dennis

But thereafter it can become more complicated:

Turner, Dennis Md
Turner, Dennis Phd

I can go through the 10 or 15 most likely suspects and handle them with
select case statements. However, I feel I am reinventing the wheel.

Somewhere, someplace, somebody must have created a class that already
handles a great number of these annoyances.  I would appreciate being
directed to it.

Thank you.

Dennis
"Peter Huang" - 16 Aug 2004 11:13 GMT
Hi

For the msdn, we know that  the ProperCase is used to convert the first
letter of every work to uppercase.
ProperCase vbProperCase Converts the first letter of every word in the
string to uppercase.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/
vamscStrConvConstants.asp

I am not sure what do you want to do,do you mean you want to convert the
TURNER, Dennis PHDas the format of Turner, Dennis PHD?
If so, I think you may need to exclude the Phd from the conversion string.

Best regards,

Peter Huang
Microsoft Online Partner Support

Signature

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.