+ Reply to Thread
Results 1 to 4 of 4

how to use (double) quotation mark as string in codes?

  1. #1
    ViestaWu
    Guest

    how to use (double) quotation mark as string in codes?

    Dear everyone,

    double quotation mark (") is a reserved word in VB, but I need show it via
    msgbox. How Can I do it?

    Tks & BR
    Viesta
    Shanghai, China



  2. #2
    Dave Patrick
    Guest

    Re: how to use (double) quotation mark as string in codes?

    MsgBox """Quoted response"""

    --

    Regards,

    Dave Patrick ....Please no email replies - reply in newsgroup.
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    http://www.microsoft.com/protect

    "ViestaWu" wrote:
    | Dear everyone,
    |
    | double quotation mark (") is a reserved word in VB, but I need show it via
    | msgbox. How Can I do it?
    |
    | Tks & BR
    | Viesta
    | Shanghai, China
    |
    |



  3. #3
    ViestaWu
    Guest

    Re: how to use (double) quotation mark as string in codes?

    Hello Dave,

    It works well. But I couldn't understand its syntax. could you explain to me?

    BR
    Viesta

    "Dave Patrick" wrote:

    > MsgBox """Quoted response"""
    >
    > --
    >
    > Regards,
    >
    > Dave Patrick ....Please no email replies - reply in newsgroup.
    > Microsoft Certified Professional
    > Microsoft MVP [Windows]
    > http://www.microsoft.com/protect
    >
    > "ViestaWu" wrote:
    > | Dear everyone,
    > |
    > | double quotation mark (") is a reserved word in VB, but I need show it via
    > | msgbox. How Can I do it?
    > |
    > | Tks & BR
    > | Viesta
    > | Shanghai, China
    > |
    > |
    >
    >
    >


  4. #4
    Bob Phillips
    Guest

    Re: how to use (double) quotation mark as string in codes?

    You have to tell VBA that the quotes are part of the string, not a string
    delimiter, so you pass it once to start the string, and then another two to
    say this is to be included. At the end, it works the other way, two to say
    this is a quotes to include, one to close the string.

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "ViestaWu" <viesta.wu@konecranes.com> wrote in message
    news:3CD513E4-0AAE-4AA4-9F99-D3A265F2ADAA@microsoft.com...
    > Hello Dave,
    >
    > It works well. But I couldn't understand its syntax. could you explain to

    me?
    >
    > BR
    > Viesta
    >
    > "Dave Patrick" wrote:
    >
    > > MsgBox """Quoted response"""
    > >
    > > --
    > >
    > > Regards,
    > >
    > > Dave Patrick ....Please no email replies - reply in newsgroup.
    > > Microsoft Certified Professional
    > > Microsoft MVP [Windows]
    > > http://www.microsoft.com/protect
    > >
    > > "ViestaWu" wrote:
    > > | Dear everyone,
    > > |
    > > | double quotation mark (") is a reserved word in VB, but I need show it

    via
    > > | msgbox. How Can I do it?
    > > |
    > > | Tks & BR
    > > | Viesta
    > > | Shanghai, China
    > > |
    > > |
    > >
    > >
    > >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1