gr8life
asked on
Replace " from text file
I’m trying to remove all “ (the double quote characters), but I am getting this error:
“overload resolution failed because no accessible ‘Replace’ accepts this number of arguments.
Thank you for your time and expertise,
Gr8life
Source code:
Filetext = filetext.Replace(“””, “”)
“overload resolution failed because no accessible ‘Replace’ accepts this number of arguments.
Thank you for your time and expertise,
Gr8life
Source code:
Filetext = filetext.Replace(“””, “”)
is filetext a sting?
please try this:
Filetext = filetext.Replace(@"""", String.Empty )
Filetext = filetext.Replace(@"""", String.Empty )
try
filetext = filetext.Replace(Chr(34), "")
filetext = filetext.Replace(Chr(34), "")
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
In my opinion, a combination of them both is the most readable:
filetext = filetext.Replace(Chr(34), String.Empty)
filetext = filetext.Replace(Chr(34), String.Empty)