How to use double quotes in a text ?

Discussion in 'Questions (Windows Mobile)' started by origami, Apr 26, 2008.

  1. origami

    origami Member Licensed User

    Hi all,

    I've got a quick and easy question :
    How to use double quotes in a string ?

    I tried the usual stuff (using backslash; using 2 doubles quotes), but it does not seems to be that.

    Thank you very much for your help.

    And congratulations to the developers for this great software !
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You should use chr(34):
    Code:
    "This is a " & chr(34) & "double quote" & chr(34)
    Or:
    q = 
    chr(34)
    "This is a " & q & "double quote" & q
     
    anOparator and patrick14384 like this.
  3. origami

    origami Member Licensed User

    Thanks for your quick answer !
     
  4. NeoTechni

    NeoTechni Well-Known Member Licensed User

    In VB, we just put 2 of the double quotes in and it treats it as 1 instead of ending/starting the string.

    ie" debug.write "Hello ""Jim"""
    prints Hello "Jim"

    Is there anyway to change it to that? It's much more convenient.
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    This thread is for Basic4ppc and it is from 2008. Please start a new thread for this request in the proper subforum.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice