Results 1 to 5 of 5

Thread: How to Display Quotes ""

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Location
    Singapore
    Posts
    78
    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!!

  2. #2
    Junior Member
    Join Date
    Aug 2000
    Posts
    27
    Code:
    MsgBox """Hello World"""
    This will display "Hello World"

  3. #3
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    above is better but FYI


    msgbox chr(34) & "Hello" & Chr(34)
    Kurt Simons
    [I know I'm a hack but my clients don't!]

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    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.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Location
    Singapore
    Posts
    78
    Thanks guys!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width