Results 1 to 4 of 4

Thread: [RESOLVED] Remove ( " )

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2008
    Posts
    130

    Resolved [RESOLVED] Remove ( " )

    Hi, I use this code to write values of the TextBox:

    Code:
    Open "Server.txt" For Append As #1
    Write #1, txtUPDATE.Text & "," & txtURL.Text & "," & txtDIR.Text & vbNewLine
    Close #1
    But when I open Server.txt:

    Code:
    "test,test,test
    "
    
    "test2,test2,test2
    "
    
    "test3,test3,test3
    "
    I need remove this ( " )!

    TO:

    Code:
    test,test,test
    
    test2,test2,test2
    
    test3,test3,test3
    it's possible?

  2. #2
    Member
    Join Date
    Sep 2007
    Posts
    46

    Re: Remove ( " )

    Try 'Print' instead of write.

  3. #3
    Addicted Member Veritas2.0's Avatar
    Join Date
    May 2008
    Posts
    181

    Re: Remove ( " )

    Have you tried using the replace string function?

    Code:
    Open "Server.txt" For Append As #1
    Write #1, replace(txtUPDATE.Text,"\"","") & "," & replace(txtURL.Text,"\"","") & "," & replace(txtDIR.Text,"\"","") & vbNewLine
    Close #1
    Simple little bugs 13 : Me 1

    Law of Bugs - That one bug you missed will be found almost immediately, by your customer.

    I wonder if anyone has ever asked for a User Surly interface?

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jul 2008
    Posts
    130

    Re: Remove ( " )

    @peteleeb - WORK
    @veritas2.0 - WORK TOO

    thanks!

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