CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2000
    Posts
    2

    VB, Strings and Quote marks

    Hi!

    I think am not a beginner any more, but I have got a quite easy question.
    Does any body know if it is possible in VB to easily include quote marks (") in a string. Instead of using the ascii code, converting it to a character with Chr(34) and adding it to the string.
    Is there an easy way like in C/C++ where you just write \" to get a " .

    Thanx in advance


  2. #2
    Join Date
    Jan 2000
    Location
    CA
    Posts
    52

    Re: VB, Strings and Quote marks

    This example will put the phrase

    She said, "You deserve a treat!" into a textbox

    [vbcode]
    Text1 = "She said, ""You deserve a treat!"" "

    [\vbcode]


  3. #3
    Join Date
    Jan 2000
    Posts
    2

    Re: VB, Strings and Quote marks

    Hey, Cool thank you!
    I did not know, that it was that easy. I have got 3 books about VB and none of them said any thing about how to do it.


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

Featured