By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,661 Members | 779 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,661 IT Pros & Developers. It's quick & easy.

vb: is there a function to capitolize each word in a string?

P: n/a
I used to use the Proper() function in VFP quite a bit. Very handy. Is
there an equivalent in vb.net or do I need to do it by forcing each
first letter to upper case and subsequent letters to lower? Thanks!

Matt
Nov 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Try This:

StrConv("TEXT HERE", VbStrConv.ProperCase)

"MattB" <so********@yahoo.com> wrote in message
news:34*************@individual.net...
I used to use the Proper() function in VFP quite a bit. Very handy. Is
there an equivalent in vb.net or do I need to do it by forcing each
first letter to upper case and subsequent letters to lower? Thanks!

Matt

Nov 19 '05 #2

P: n/a
Hi Matt,

You can get this in the TextInfo.ToTitleCase Method in the
System.Globalization Namespace.

http://msdn.microsoft.com/library/de...ecasetopic.asp

Ken
Microsoft MVP [ASP.NET]
Toronto
"MattB" <so********@yahoo.com> wrote in message
news:34*************@individual.net...
I used to use the Proper() function in VFP quite a bit. Very handy. Is
there an equivalent in vb.net or do I need to do it by forcing each first
letter to upper case and subsequent letters to lower? Thanks!

Matt


Nov 19 '05 #3

P: n/a
Hey Matt,

If you want to do FoxPro stuff in .NET, check the documentation for Visual
FoxPro Toolkit for .NET found here:

http://www.gotdotnet.com/team/vfp/

Ken
Microsoft MVP [ASP.NET]
Toronto

"MattB" <so********@yahoo.com> wrote in message
news:34*************@individual.net...
I used to use the Proper() function in VFP quite a bit. Very handy. Is
there an equivalent in vb.net or do I need to do it by forcing each first
letter to upper case and subsequent letters to lower? Thanks!

Matt


Nov 19 '05 #4

P: n/a
Ken Cox [Microsoft MVP] wrote:
Hey Matt,

If you want to do FoxPro stuff in .NET, check the documentation for
Visual FoxPro Toolkit for .NET found here:

http://www.gotdotnet.com/team/vfp/

Ken
Microsoft MVP [ASP.NET]
Toronto

"MattB" <so********@yahoo.com> wrote in message
news:34*************@individual.net...
I used to use the Proper() function in VFP quite a bit. Very handy. Is
there an equivalent in vb.net or do I need to do it by forcing each
first letter to upper case and subsequent letters to lower? Thanks!

Matt



Thanks. I'm not really trying to use VFP with .net, that's just where my
background lies.
Thanks for the suggestions. Looks like these will be helpful!

Matt
Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.