How do I put " in quotes?

studio
string

#1

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?


#2

@WilmaR, Refer this,

Regards,
Dominic :slight_smile:


#3

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”)


#4

Thank you!