Case conversion

  • Thread starter Thread starter John
  • Start date Start date
J

John

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
 
¤ 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)
 
Back
Top