Print Page | Close Window

searching a string for "

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=7806
Printed Date: 01 April 2026 at 2:32am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: searching a string for "
Posted By: fark
Subject: searching a string for "
Date Posted: 02 December 2003 at 4:59pm

I want to search for " this but I get an error because of the "

InStr(Values(I),""")=0

Any Ideas?




Replies:
Posted By: God_Struth
Date Posted: 02 December 2003 at 5:32pm
Not 100% sure, but this springs to mind.

"\"\"


If it dont work my apologies.

-------------
"I'm only trying to help......"


Posted By: MorningZ
Date Posted: 02 December 2003 at 6:13pm

in VB and VBscript, a double quote is represented by two double quotes...

so
InStr(Values(I),""")=0

should be
InStr(Values(I),"""")=0



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: God_Struth
Date Posted: 03 December 2003 at 5:34am
Cheers MorningZ, I knew it was double something

-------------
"I'm only trying to help......"


Posted By: fark
Date Posted: 03 December 2003 at 7:28am
Excelent, Thank You!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net