Results 1 to 3 of 3

Thread: *Solved*Can't get it to write to file right...

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    Chesterfield, Mi
    Posts
    259

    Exclamation *Solved*Can't get it to write to file right...

    Ok I got vb outputing some names to a text file.. but It keeps adding " in front of everything and at the end.. WHY?!

    This is the write statement.. I figure this is where it's telling it to add Quotes.. because if you just beug.print the variable it has no quotes...

    wfile is defined by a commondialogbox
    Code:
    Open wFile For Output As filenum
    Dim potion1, potion2, potion3, potion4
    potion1 = "[Rej Potion]"
    potion2 = "Code='rvs'"
    potion3 = "[Full Rej Potion]"
    potion4 = "Code='rvl'"
    MsgBox potion1
    Write #filenum, potion1
    Write #filenum, potion2
    Write #filenum, potion3
    Write #filenum, potion4
    Write #filenum,
    Close filenum
    This is what the output looks like..

    "[Rej Potion]"
    "Code = 'rvs'"
    "[Full Rej Potion]"
    "Code = 'rvl'"

    I need the quotes to vanish!
    Last edited by mstic; Nov 22nd, 2002 at 02:52 PM.

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