Solved

Replace " from text file

Posted on 2007-04-06
5
180 Views
Last Modified: 2010-04-23
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(“””, “”)
0
Comment
Question by:gr8life
  • 3
5 Comments
 
LVL 35

Expert Comment

by:YZlat
ID: 18867286
is filetext a sting?
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 18867287
please try this:
Filetext = filetext.Replace(@"""", String.Empty )
0
 
LVL 35

Expert Comment

by:YZlat
ID: 18867295
try

filetext = filetext.Replace(Chr(34), "")
0
 
LVL 35

Accepted Solution

by:
YZlat earned 500 total points
ID: 18867303
also try

filetext = Replace(filetext, chr(34), "")
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 18867929
In my opinion, a combination of them both is the most readable:

        filetext = filetext.Replace(Chr(34), String.Empty)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question