Solved

Replace " from text file

Posted on 2007-04-06
5
190 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 86

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

621 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