|
-
Oct 18th, 2000, 09:04 AM
#1
Thread Starter
Lively Member
Hi all,
Ok I know this is a simple question but it just happen that I dunno it, dohh... 
How do I display or msgbox a statement with quotes?
Like:
"Hello World!!"
I wish to display the above message WITH quotes.
Thanks for any help!!
-
Oct 18th, 2000, 09:06 AM
#2
Junior Member
Code:
MsgBox """Hello World"""
This will display "Hello World"
-
Oct 18th, 2000, 09:09 AM
#3
Fanatic Member
above is better but FYI
msgbox chr(34) & "Hello" & Chr(34)
Kurt Simons
[I know I'm a hack but my clients don't!]
-
Oct 18th, 2000, 09:11 AM
#4
Frenzied Member
Yep, or use
Code:
msgBox Chr(34) & "Hey I'm surrounded by double quotes" & Chr(34)
'for "Hey I'm surrounded by double quotes" or
MsgBox Chr(39) & "Hey I'm surrounded by single quotes" & Chr(39)
'for 'Hey I'm surrounded by single quotes'
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Oct 18th, 2000, 09:29 AM
#5
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|