Solved

Convert name to proper case

Posted on 2006-10-23
6
194 Views
Last Modified: 2008-03-17
I need to convert a name to Proper Case which has been entered on a web page.  I am using VB.NET. Any ideas?
0
Comment
Question by:thespiceman
  • 3
6 Comments
 
LVL 6

Expert Comment

by:Roopesh_7
ID: 17792894
which case actuly u needed becouse different javascript string  function are there touppercase() tolowercase() to convert the case.....tell me you requirment specifically....
0
 

Author Comment

by:thespiceman
ID: 17797135
I need to check if a name is all lowercase or uppercase first.  That's easy.  If it is, then I need to convert it to Proper Case.  e.g. TIM SMITH to Tim Smith.  
0
 

Author Comment

by:thespiceman
ID: 17797317
Got it figured out:

Private Function ProperCase(ByVal strValue As String) As String
        Try
            ProperCase = StrConv(strValue, VbStrConv.ProperCase)
        Catch ex As System.Exception
           'Error hadler goes here
        End Try
    End Function
0
 

Author Comment

by:thespiceman
ID: 17797326
Please close this question
0
 
LVL 1

Accepted Solution

by:
kodiakbear earned 0 total points
ID: 17828792
Closed, 500 points refunded.
kb
Experts Exchange Moderator
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

24 Experts available now in Live!

Get 1:1 Help Now