I suggest that :
Dim myWord As String = "delicious"
Dim myWordInChar As Char() = myWord.ToCharArray()
Dim tmp As Char = myWordInChar(4)
myWordInChar(4) = myWordInChar(5)
myWordInChar(5) = tmp
myWord = New String(myWordInChar)
"Dinko Deranja" <dd******@public.srce.hr> a écrit dans le message de
news:%2****************@tk2msftngp13.phx.gbl...
Suppose that you have a string e.g. "delicious" and an integer e.g. 5. How
to
replace the character at position 5 with next character (in position 6) so
that "delicious" becomes "deliicous" ?