Results 1 to 5 of 5

Thread: Easy one

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Ca
    Posts
    106
    how do you include " character in a string?

  2. #2
    Guest
    Use triple quotes.
    Code:
    Print """Hello"""
    OR
    Code:
    Print Chr(34) & "Hello" & Chr(34)

  3. #3
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425
    say for example you wanted the string to contain "hello"

    you would put:

    [code]
    dim strhello as string

    strhello = """hello"""

    [\code]

    Hope this was of help!!

  4. #4
    Lively Member
    Join Date
    Apr 2000
    Location
    Rafaela (Argentine)
    Posts
    107
    Try this:

    Code:
    MsgBox """A"

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Ca
    Posts
    106
    thanks alot guys for posting replies ... i think i'll go with megatron's chr(34) idea... thanks again

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