Hi, I would like to do the following:
I have a string variable called UserInput: “1234”
I want to replace the second character of this string with the letter “p”.
So then the new string should look like this: “1p34”.
The way I am currently doing is: UserInput.Replace(UserInput(1),“p”)
However, this keeps on looking for the character “1” within the string, instead of looking up the position 1. It is returning: “p234”.
Hi Thank you! I tried this but the same problem persists… I think there is something else wrong with my automation. Would it be possible for you to take a look at my file?
I tried it with another string “7777” instead just to see if it was a character issue. But the same thing happened.
It keeps on returning “pppp” instead of just “7p77”.
How can I fix this? Can I send you the file so you can take a look at the source?