Results 1 to 4 of 4

Thread: Putting quotes in text

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2003
    Location
    Chicagoland
    Posts
    92

    Putting quotes in text

    I'm sure this has come up before (It seems pretty simple), but I can't seem to find it after a half hour of searches on the forum.

    I'm trying to create an html file with a table. I need to write the line:
    Code:
    <TABLE width="100%">
    However whenever I try to put that in a WriteLine function, it doesn't like the quotes around the 100%.
    VB Code:
    1. Dim makehtml As StreamWriter = new StreamWriter(path)
    2. makehtml.WriteLine("<TABLE width="100%">")

    How do I get those quotes to appear in the html file?

  2. #2
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Dublin (Ireland)
    Posts
    304
    use single quotes not double around the '100%'

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2003
    Location
    Chicagoland
    Posts
    92
    If I use the single quotes, that's what shows up in the file. How do I get the double quotes into the file?

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Put double, double quotes.

    makehtml.WriteLine("<TABLE width=""100%"">")

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