Hi. I am trying to use the replace function on a text string. For example, I want to replace the string “the pipe is 15” long" with the “the pipe is 15 inches long”. I would like to use something like Somestring.replace(" " ",“inches”). However, it gets confused with the " in between the quotation marks… How do I set up this replace?
@WilmaR, Refer this,
Regards,
Dominic
The above solution is correct.
“the pipe is 15”+ chr(34)+" long"
Check chr(34) as well, makes the code look less confusing
Somestring.Replace(chr(34),“inches”)
Thank you!