Capitalize a string
QweRtY
can be automatically changed into
QWERTY
Thanks a lot!!
QweRtY
can be automatically changed into
QWERTY
Thanks a lot!!
Seems like next time i should searcha bit more before posting...
Thanks anyway ;)
á í ó ú
into
a e i o u
Thanks and sorry for posting so many replyes :P
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 resultStringEnd FunctionHope this help!
There's a couple of ways to skin this one,
Dim source As String
Dim target As Stringtarget = UCase(source)
target = source.ToUpper (+1 overload)