Solved

Escape character in ASP ?

Posted on 2001-06-08
5
203 Views
Last Modified: 2012-05-04
I have a string :

 This is a "PEN"

How do I assign that string in a ASP variable ?
0
Comment
Question by:johnmemor
5 Comments
 
LVL 18

Expert Comment

by:mgfranz
ID: 6169412
varStr = "THis is a ""PEN""
0
 
LVL 3

Expert Comment

by:ckaneta
ID: 6169415
without quotes
  strvar="This is a PEN"
with quotes
  strvar="This is a ""PEN"""
0
 
LVL 18

Accepted Solution

by:
mgfranz earned 15 total points
ID: 6169417
Oops, varStr = "This is a ""PEN"""

Your'e gunna get a bunch of replies...
0
 
LVL 7

Expert Comment

by:daniel_c
ID: 6169437
Hohoho, another one here:

varStr = "This is a " & chr(34) & "PEN" & chr(34)
0
 
LVL 2

Expert Comment

by:RickHalle
ID: 6170008
<%
Option Explicit
Dim varStr
varStr = "This is a ""PEN"""
%>

Rick
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

760 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

19 Experts available now in Live!

Get 1:1 Help Now