Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2003
    Location
    Slovakia
    Posts
    21

    Unanswered: how can I write quotas " in vb?

    I need to get to string qouta in Visual Basic...

    Dim strName
    Dim strNameWithQuota

    strName = "John"

    strNameWithQuota = """ & strName & """

    it doesn't work...
    can anybody help me?

  2. #2
    Join Date
    Jun 2002
    Posts
    16

    Use CHR()

    strNameWithQuota = chr(34) & strName & chr(34)

  3. #3
    Join Date
    Oct 2003
    Location
    Slovakia
    Posts
    21

    Re: Use CHR()

    Originally posted by CaptainEstock
    strNameWithQuota = chr(34) & strName & chr(34)

    thanks a lot!!!

  4. #4
    Join Date
    Nov 2003
    Posts
    2
    You can also:

    strName = "John"

    strNameWithQuota = """" & strName & """"

    Where """" = one " in " "

Posting Permissions

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