473,471 Members | 2,017 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Proper Case

Joe
Hello All:

Deos anyone know of a simple way to convert a string to proper case?

TIA,
--
Joe
Feb 6 '06 #1
4 1495
Hello Joe,

There is an VbStrConv.ProperCase under the StrConv function which would seem
to be a pretty simple way to do the conversion.

--
enjoy - brians
http://www.limbertech.com
"Joe" wrote:
Hello All:

Deos anyone know of a simple way to convert a string to proper case?

TIA,
--
Joe

Feb 6 '06 #2
I found this on Rich Strahl's website:
http://west-wind.com/weblog/posts/361.aspx.

Converts string to ProperCase in a culture sensitive manner. Seems to be
just what you need:

TextBox1.Text =
System.Threading.Thread.CurrentThread.CurrentCultu re.TextInfo.ToTitleCase(TextBox1.Text);
--
brians
http://www.limbertech.com
"Joe" wrote:
Brian,

Is it possible to do this w/o referring back to VB6 functions?

--
Joe
"brians[MCSD]" wrote:
Hello Joe,

There is an VbStrConv.ProperCase under the StrConv function which would seem
to be a pretty simple way to do the conversion.

--
enjoy - brians
http://www.limbertech.com
"Joe" wrote:
Hello All:

Deos anyone know of a simple way to convert a string to proper case?

TIA,
--
Joe

Feb 6 '06 #3
Joe
Brian,

Thanks. I tried that eysterday, too. It works fine except it doesn't
handle things like McDonald or O'Connor. Could I have mised something in the
implementation? I use the exact code that you incldued in your last post
(from Rich's website).
--
Joe
"brians[MCSD]" wrote:
I found this on Rich Strahl's website:
http://west-wind.com/weblog/posts/361.aspx.

Converts string to ProperCase in a culture sensitive manner. Seems to be
just what you need:

TextBox1.Text =
System.Threading.Thread.CurrentThread.CurrentCultu re.TextInfo.ToTitleCase(TextBox1.Text);
--
brians
http://www.limbertech.com
"Joe" wrote:
Brian,

Is it possible to do this w/o referring back to VB6 functions?

--
Joe
"brians[MCSD]" wrote:
Hello Joe,

There is an VbStrConv.ProperCase under the StrConv function which would seem
to be a pretty simple way to do the conversion.

--
enjoy - brians
http://www.limbertech.com
"Joe" wrote:

> Hello All:
>
> Deos anyone know of a simple way to convert a string to proper case?
>
> TIA,
> --
> Joe

Feb 7 '06 #4
TH
Joe - You might want to take a look at this function. It considers names
like McDonald and O'Connor. You can also add your own exceptions.

http://www.hutchrick.com/propname.htm
"Joe" wrote:
Brian,

Thanks. I tried that eysterday, too. It works fine except it doesn't
handle things like McDonald or O'Connor. Could I have mised something in the
implementation? I use the exact code that you incldued in your last post
(from Rich's website).
--
Joe
"brians[MCSD]" wrote:
I found this on Rich Strahl's website:
http://west-wind.com/weblog/posts/361.aspx.

Converts string to ProperCase in a culture sensitive manner. Seems to be
just what you need:

TextBox1.Text =
System.Threading.Thread.CurrentThread.CurrentCultu re.TextInfo.ToTitleCase(TextBox1.Text);
--
brians
http://www.limbertech.com
"Joe" wrote:
Brian,

Is it possible to do this w/o referring back to VB6 functions?

--
Joe
"brians[MCSD]" wrote:

> Hello Joe,
>
> There is an VbStrConv.ProperCase under the StrConv function which would seem
> to be a pretty simple way to do the conversion.
>
> --
> enjoy - brians
> http://www.limbertech.com
>
>
> "Joe" wrote:
>
> > Hello All:
> >
> > Deos anyone know of a simple way to convert a string to proper case?
> >
> > TIA,
> > --
> > Joe

Feb 9 '06 #5

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

Similar topics

12
by: Brian Henry | last post by:
is there function to do proper case formatting on a string? FoxPro use to have a proper function that did this for you... thanks
1
by: Lal | last post by:
Dear all, Is any method to covert to proper case? like STORE 'VISUAL FOXPRO' TO gcExpr2 ? PROPER(gcExpr2) && Displays "Visual Foxpro" please help
9
by: liljencrantz | last post by:
Hi, I have a piece of code that uses hashtables to store pointers to various bits of data. The hashtable sees all pointers as const void *, while the application obviously uses various other...
0
by: RajaniP | last post by:
What should we do in the case SQL was installed without the proper case order? How can we determine what case order SQL was installed with?
2
by: CD | last post by:
I have a asp page pulling results from an Access DB. I have no control of the data input to the db. All the information is entered in Upper case. It contains fields like address, city, etc.. ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.