hi all,

i came across this very basic need, i want to replace a character in a string with another character.

Dim s as string
s = "this iz a test"
s(7) = "s" 'this would be nice, but gives an error




i cant find anything -not even a hint- about some existing function or operator which gives me this functionality. I tried everything i could think of, nothing worked.

I'm kinda reluctant to start writing a new function which takes apart the string, removes the unwanted character, puts the new character in its place, and glues everything back together again.

Am i just being blind, not able to find anything existing for this problem, or am i just thinking too difficult so that i overlook a simple solution right in front of me?

Anybody?

thanx