473,382 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

format first name from -john- to -John- ?

RN
I'm trying to fix user inputed names to proper case. People love to enter
their names in all lower case or all upper, etc. I remember reading
somewhere that there is an easy way in the framework to convert name fields,
first and last, to proper case. I forgot the name of that case syntax, but
basically where you make sure to capitalize the first letter of someone's
first and last name, fix all capital letters ("JOHN" > "john"), etc.

Can someone point me in the right direction please?

Also, is there a way in your solution to not screw up names that should have
1 capital letters, like "McDonald", so I won't turn it into "Mcdonald"?

Nov 19 '05 #1
3 1238
http://www.eggheadcafe.com/PrintSear...asp?LINKID=337

--
'dlbjr
'Pleading sagacious indoctrination!
Nov 19 '05 #2
RN
I appreciate the VBScript example, but I'm really looking for the .NET
framework way.

"dlbjr" <oo**@iforgot.com> wrote in message
news:Om**************@TK2MSFTNGP10.phx.gbl...
http://www.eggheadcafe.com/PrintSear...asp?LINKID=337

--
'dlbjr
'Pleading sagacious indoctrination!

Nov 19 '05 #3
Hello RN,

You may want to look at TextInfo.ToTitleCase [1]...

[1] http://msdn.microsoft.com/library/de...eCaseTopic.asp

--
Matt Berther
http://www.mattberther.com
I'm trying to fix user inputed names to proper case. People love to
enter their names in all lower case or all upper, etc. I remember
reading somewhere that there is an easy way in the framework to
convert name fields, first and last, to proper case. I forgot the
name of that case syntax, but basically where you make sure to
capitalize the first letter of someone's first and last name, fix all
capital letters ("JOHN" > "john"), etc.

Can someone point me in the right direction please?

Also, is there a way in your solution to not screw up names that
should have
1 capital letters, like "McDonald", so I won't turn it into
"Mcdonald"?


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Prasad Karunakaran | last post by:
I am using the C# DirectoryEntry class to retrieve the Properties of an user object in the Active Directory. I need to get the First Name and Last Name as properties. I know it is not supported...
1
by: Prasad Karunakaran | last post by:
I am using the C# DirectoryEntry class to retrieve the Properties of an user object in the Active Directory. I need to get the First Name and Last Name as properties. I know it is not supported...
2
by: k dog | last post by:
I'm working on an app where I need to do a search for like and similar first name matches. For example a search for John would bring back Jon, John, Jonathan, etc. Working with asp.net and sql...
2
by: John | last post by:
Hi How can I extract the first name from the full name where each name is separated by spaces? Thanks Regards
7
by: Mary | last post by:
I have a student who has a hyphenated first name. If I concatenate the name like this: StudentName:( & ", " & ), it works as expected. If, however, I try to get the first name first by...
5
by: Jim in Arizona | last post by:
I built a webpage using vb.net (.net 2.0) that creates a form letter. This letter pulls data from a database. Although I populate the address with the person's full name, which comes from the name...
1
by: hbkiwi | last post by:
Hi, Just playing with Access fairly new to it (like days old). Also it's my first post here so if I'm in the wrong place, sorry.. What I'm wanting to know is basically I have lets call it Table...
9
by: mgstlucia | last post by:
I know that I saw code on this forum to put the Last Name, First Name in the same field when you start with a table that has 2 separate fields (LASTNAME and FIRSTNAME) but I can't find it. I...
5
by: jmurphy | last post by:
What do i add to this script to validate the entry? Thanks in advance for the help. <form name="continue" method="POST" action="shipping1.asp" onsubmit="return validate_form ();"> <input...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.