Hi,
I have a string and I need to replace a character in a certain position. There may be other characters in the string that are the same so I'm not sure replace() function will work correctly as I only want the one character changed.
example:
var myString = "00110011234"
want to change position 5 to a 1.
In c i would just say myString[5] = "1" but this doesn't seem to work here.
Thanks in advance.
I have a string and I need to replace a character in a certain position. There may be other characters in the string that are the same so I'm not sure replace() function will work correctly as I only want the one character changed.
example:
var myString = "00110011234"
want to change position 5 to a 1.
In c i would just say myString[5] = "1" but this doesn't seem to work here.
Thanks in advance.