473,499 Members | 1,525 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Case conversion

Hi

How can one change a textbox content to mixed case (first letter of each
word cap, rest small) in asp (vb.net)?

Thanks

Regards
Nov 19 '05 #1
3 1779
TJS
in a function called "Proper case". Search this out on Google
"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:Oi**************@TK2MSFTNGP14.phx.gbl...
Hi

How can one change a textbox content to mixed case (first letter of each
word cap, rest small) in asp (vb.net)?

Thanks

Regards

Nov 19 '05 #2
On Thu, 30 Jun 2005 17:42:03 +0100, "John" <Jo**@nospam.infovis.co.uk> wrote:

¤ Hi
¤
¤ How can one change a textbox content to mixed case (first letter of each
¤ word cap, rest small) in asp (vb.net)?
¤

Dim Phrase As String = "this is a test"
Dim TextArray As String() = Nothing
Dim Word As String
Dim NewString As String
TextArray = Phrase.Split(" ")
For Each Word In TextArray
NewString = NewString & (Word.Substring(0, 1).ToUpper() & Word.Substring(1, Word.Length
- 1).ToLower() & " ")
Next Word
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 19 '05 #3

Also here is a sample from MSDN for the same

http://msdn.microsoft.com/library/de...lacetopic1.asp
"Paul Clement" wrote:
On Thu, 30 Jun 2005 17:42:03 +0100, "John" <Jo**@nospam.infovis.co.uk> wrote:

¤ Hi
¤
¤ How can one change a textbox content to mixed case (first letter of each
¤ word cap, rest small) in asp (vb.net)?
¤

Dim Phrase As String = "this is a test"
Dim TextArray As String() = Nothing
Dim Word As String
Dim NewString As String
TextArray = Phrase.Split(" ")
For Each Word In TextArray
NewString = NewString & (Word.Substring(0, 1).ToUpper() & Word.Substring(1, Word.Length
- 1).ToLower() & " ")
Next Word
Paul
~~~~
Microsoft MVP (Visual Basic)

Nov 19 '05 #4

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

Similar topics

0
2246
by: Tumurbaatar S. | last post by:
Hi, I'm running MySQL 3.23.55 on WinXP and have some problem using non latin charset. I've added these 2 lines under group of my.ini: character-sets-dir = c:/mysql/share/charsets/...
5
16550
by: Nils O. Selåsdal | last post by:
Is there some quick C++ way I can do something similar to string::find , but case insensitive ?
22
6403
by: DJ | last post by:
Can someone tell me the library call that converts strings to lower case or retrns a new string that is lower case of the original, thanks im using <string> David
14
1809
by: amit | last post by:
Hello group, In a method of my class I have below problem in terms of type case. Can somebody please give me insight into this? This function returns a pointer into the array at the specified...
11
3788
by: jguilford | last post by:
I have created a SQL Stored Procedure that uses a Case statement to determine the Order By. For one of the Case statements I am trying to turn a Char field into Datetime in for the Order By,...
9
1671
by: vindhya | last post by:
I have a small query. If I have a character from alphabets and I want to change case of the same then how is it possible ? Here are the solutions, but can you suggest any other solution may be...
0
1381
by: n33470 | last post by:
We have a web site that is being converted from the 1.1 format into 2.0. I've noticed that after the web project has been converted, the first time that the solution is opened in VS, all of the...
2
1880
by: ranjiththarayil | last post by:
Consider the following code snippet ------------------ float fi=12.598; printf("\n %.2f \n",fi); ------------------ the output of this would be 12.60 (note when we give the conversion...
2
1862
by: WittyGuy | last post by:
Hi My class looks something like this: class Base { public: Base () {} ~Base () {} // No virtual dtor in the base class private: };
55
3092
by: aarklon | last post by:
Hi, why general integer expressions are not allowed in case labels in switch statements..????
0
7130
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
7007
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7220
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...
1
6893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7386
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
3098
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
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.