Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replace Method ( " through "" )

Status
Not open for further replies.

swordbarth

Programmer
Oct 12, 2001
3
CH
can i replace in a textfile all " through "" ?
 
Hello, swordbarth.

What do you mean exactly by " through "" ? The construction seems unusual. I do not get the meaning of it.

regards - tsuji
 
Hi tsuji, i am Anna from Hungary. I suppose swordbarth wants to replace all " to "".
Am I right?

Regards - palpanni
 
Here it is:
text=Replace(text,"""","""""") ________
George, M
 
U have to place two " if u need to add " to your string in VBScript
The red one search for one " and then replace with two " in the red blue one... ________
George, M
 
Here is another way to do it using the ANSI value for Quotes(").

text = Replace(text, chr(34), chr(34) & chr(34))

It will make your code easier to read.

Hope it helps,
horacer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top