none
quotation marks RRS feed

  • Question

  • writer.WriteLine(

    "^"c & aa & bb & cc & dd & "!"c)

    How does one insert a quotation mark inside quotation marks instead of the above "^" and "!"?

    Sunday, June 6, 2010 1:34 AM

Answers

  • Try this... Chr(34) or "" (two quotes together)

    TextBox1.Text = "She said, " & Chr(34) & "You deserve a treat!" & Chr(34)

    • Marked as answer by Plasman Sunday, June 6, 2010 3:25 AM
    Sunday, June 6, 2010 2:46 AM

All replies

  • For Small Basic, you can use Text.GetCharacter(34) to print double quotes.

     

    TextWindow.WriteLine(Text.GetCharacter(34) + "this is a quote" + Text.GetCharacter(34))

    but it looks like you might not be using Small Basic, in that case, you've posted in the wrong forum.
    • Proposed as answer by unitechy Friday, June 11, 2010 4:44 PM
    Sunday, June 6, 2010 1:42 AM
  • I am using Visual Basic 2000 Express. Not sure what Small Basic is. Not sure How I obtained the incorrect forum. 

     

    Thanks anyway. 

    Sunday, June 6, 2010 2:19 AM
  • Try this... Chr(34) or "" (two quotes together)

    TextBox1.Text = "She said, " & Chr(34) & "You deserve a treat!" & Chr(34)

    • Marked as answer by Plasman Sunday, June 6, 2010 3:25 AM
    Sunday, June 6, 2010 2:46 AM
  • Thanks. The Char(34) works.
    Sunday, June 6, 2010 3:27 AM
  • For Small Basic, you can use Text.GetCharacter(34) to print double quotes.

     

    TextWindow.WriteLine(Text.GetCharacter(34) + "this is a quote" + Text.GetCharacter(34))
    

    but it looks like you might not be using Small Basic, in that case, you've posted in the wrong forum.
    Thank you, this is exactly what i was looking for.
    Friday, June 11, 2010 4:44 PM