Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

ASP: Remove double quotes from String

Posted on 2003-04-01
3
Medium Priority
?
548 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
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Suggested Courses

564 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