473,466 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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
4 1154
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Nige | last post by:
To save me re-inventing the wheel, does anyone have a function to capitalise each word in form data? I was thinking along the lines of capitalise the first letter of the string, then any other...
6
by: Ryan Muller | last post by:
My company just upgraded from Access 97 to Access 2003 today and we are having some issues in a database that generates a Word document from information selected in a form. Here is the code we...
0
by: windandwaves | last post by:
Hi folk Create two tables: 1. SOURCE 2. SOURCE_CONVERSION give them two fields: 1. ID = autonumber primary key
3
by: carl.barrett | last post by:
Hi, I have a number of buttons on a form which run mailmerges. Next to each button is a text box/control that the user enters a date into when the letter was created/merged. When the user...
2
by: SAL | last post by:
I would like to create a VB.net function, that builds a dynamic hyperlink using System.Web.UI.WebControls.HyperLink, but I can not find any examples on how to generate a dynamic hyperlink. Has...
2
by: mick.smith1 | last post by:
I have written a short function to pass different criteria to a query. When I use the Like operator the string is inerpreted with single quotes i.e QueryCriteria = "Like '" & "camera*" & "'" is...
4
by: hanseymoon | last post by:
Dear newsgroup: I've got this long function, which works good overall to spell check words from a dictionary and I am not in a position to replace it. Can someone please see where or how it...
6
by: Xernoth | last post by:
Hi, I have an exercise that requests the following: Write a function that reads words from an input stream and stores them in a vector. Use that function both to write programs that count the...
8
TimNick90
by: TimNick90 | last post by:
I am making a hangman program for school that uses a function for the player to input their guess and a seperate function to test whether or not their guessed letter is in the word. The program...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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: 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
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.