Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

quotations 1

Status
Not open for further replies.

TickleMeEmo

Programmer
Feb 20, 2003
9
0
0
US
While formating my email, i have learned of the all powerfull VbCrLf to create a line break.
What I need now is some quotation marks.
Is there a VB ampersand#34 that will make quotation marks without messing up my ASP?
If I use ampersand#34, it simply prints ampersand#34 in my email (because its a text email).
(I'm not really spelling out &, I had to or it would make quote marks in my post)

 
Will the chr(34) help? ________________________________________________________________________
Are you trying to debug your ASP applications? See faq333-3255 for more details

regards,
Brian
 
Use 2 consecutive double quotes to denote one set of quotes. It may look strange, but I know this will work.

To out put this: "sample"

It should look like this in the code:

Response.Write("""sample""")

Another example...

James "Jimi" Smith

Response.Write("James ""Jimi"" Smith")


Hope this helps.
 
function DblQt(str)
DblQt = chr(34) & str & chr(34)
end function ________________________________________________________________________
Are you trying to debug your ASP applications? See faq333-3255 for more details

regards,
Brian
 
Thanks, that's just what I was looking for!

Nice one!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top