Results 1 to 4 of 4

Thread: i want quotes!!!

  1. #1

    Thread Starter
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606

    Question

    How can i put quotes in my variable:

    when i'll do msgbox myvar

    i'll see "hello" and not hello

    i want the quotes at the beginning ant at the end of my string.

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Code:
    MsgBox Chr(34) & "hello" & Chr(34)
    'Or
    MsgBox Chr(39) & "hello" & Chr(39)
    Have funnnnnn!
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3

    Thread Starter
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606

    Lightbulb it's ok

    i found out :
    myvar = """hello"""

  4. #4
    Addicted Member c@lle's Avatar
    Join Date
    Oct 1999
    Location
    Belgium
    Posts
    179
    or MsgBox """hello"""

    (the double quotes "" between the 'string' quotes are translated to one quote)

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