CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2005
    Location
    Wauchope, New South Wales, Australia
    Posts
    2

    Exclamation txtbox.Text = """

    when i put

    ElseIf txtbox.Text = """ Then

    it gives me a message box saying

    Compile error:
    Expected: Then

    i need to make a response for a textbox displaying the single character " is there some way to make it work? by using brackets or anything?

  2. #2
    Join Date
    Sep 2005
    Posts
    67

    Re: txtbox.Text = """

    try this:

    Code:
    txtbox.Text = """"
    it works...

  3. #3
    Join Date
    Sep 2001
    Location
    Québec, Canada
    Posts
    1,923

    Re: txtbox.Text = """

    """" Works very well, but I find it confusing sometimes, for clarity, you can also use (it's the same thing): txtbox.Text = chr(34)

    JeffB
    CodeGuru VB FAQ Visual Basic Frequently Asked Questions
    VB Code color Tool to color your VB code on CodeGuru
    Before you post Importants informations to know before posting

  4. #4
    Join Date
    Sep 2005
    Location
    Delhi, INDIA
    Posts
    237

    Re: txtbox.Text = """

    agreed

    txtbox.Text = chr(34) is the right way to doing all this.
    I'M BACK AGAIN !!
    -------------------------------------------------------------------------
    enjoy the VB !
    If any post helps you, please rate that.
    Always try to findout the Solutions, instead just discussing the problem and its scope!

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