Capitalize a string

I want to ask if is there any way to capitalize an entire string, so that a string looking like

QweRtY

can be automatically changed into

QWERTY

Thanks a lot!!

[166 byte] By [Xi0N] at [2007-12-28]
# 1
http://msdn2.microsoft.com/en-us/library/53e2ew8a.aspx

Seems like next time i should searcha bit more before posting...

Thanks anyway ;)

Xi0N at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2
Actually, what i need now is a function that can change characters like

á í ó ú

into

a e i o u

Thanks and sorry for posting so many replyes :P

Xi0N at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 3

The method below should cater for this, the sourceString can be either single characters or complete strings.

Public Function convertCharacters(ByVal sourceString As String) As String

Dim resultString As String = ""

resultString = sourceString.Replace("á", "a")

resultString = sourceString.Replace("", "e")

resultString = sourceString.Replace("í", "i")

resultString = sourceString.Replace("ó", "o")

resultString = sourceString.Replace("ú", "u")

Return resultString

End Function

Hope this help!

Quantumnus at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 4

There's a couple of ways to skin this one,

Dim source As String

Dim target As String

target = UCase(source)

target = source.ToUpper (+1 overload)

Quantumnus at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Language...