...

View Full Version : how can i replace quotes in a string?



angst
07-13-2004, 06:20 PM
Hello,
I need to be able to replace quotes in a string i'm working with,

my code:

myString = objTS.ReadLine
myString = replace(myString, char(34), "")
myArray = Split(mystring, ",")

i know i can't use 3 quotes in a row,
and char(34) isn't working either,

using the above code i get this error:
Type mismatch: '[undefined]'

so my question is how can this be done?

thanks in advance for your time!
ken

Roy Sinclair
07-13-2004, 09:33 PM
You need FOUR quotes to make it work.

myString = replace(myString,"""", "")



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum