Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Outputting escape characters?

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,160
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Outputting escape characters?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Outputting escape characters? - 6/13/2001 12:23:16 AM   
  gold7

 

Posts: 10
Score: 0
Joined: 6/9/2001
From: USA
Status: offline
Hey,

Does anyone know how to output
the double-quote " character
in VBScript? (Escape characters)

For example, in JavaScript, the
following would output
(with double-quotes)
the string "Hello, world!"
in a message-box:


alert("\"Hello, world!\"");


The VBScript equivalent?
This does NOT work:


MsgBox("\"Hello, world!\"")
 
 
Post #: 1
 
 Re: Outputting escape characters? - 6/13/2001 12:25:06 AM   
  compugenie

 

Posts: 9
Score: 0
Joined: 6/9/2001
From: USA
Status: offline
No escape.
Just double-up the doble-quote"
msgBox("""Hello World""")

(in reply to gold7)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Outputting escape characters? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts