Solved

Replace " from text file

Posted on 2007-04-06
5
177 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 142

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now