?
Solved

ASP: Remove double quotes from String

Posted on 2003-04-01
3
Medium Priority
?
482 Views
Last Modified: 2008-02-01
I want to remove double quotes from a string does anyone know how to do it? Ive looked around and I see how to replace single quotes with the replace function but I get an error when trying it with double quotes.

Details = Replace(Details, "'", "''") ' this works
Details = Replace(Details, """, " ") ' this throws an error

Error:
Unterminated string constant

/quicklook/quicklook.asp, line 297

Details = Replace(Details, """, "")
-----------------------------------^
0
Comment
Question by:valtech
[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
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
georgerr earned 400 total points
ID: 8246406
Do While Instr(Details, "'")
     Details = Replace(Details, "'", "")
Loop

Do While Instr(Details, """")
     Details = Replace(Details, """", "")
Loop
0
 

Author Comment

by:valtech
ID: 8246425
Clear concise and fast!!

Now why didnt I think of Instr. Good Job Thanks.
0
 
LVL 2

Expert Comment

by:georgerr
ID: 8246565
*blush*
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

801 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