Results 1 to 3 of 3

Thread: SAVE LOG CODE NOT WORKING WHY

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Posts
    219

    Post

    Private Sub savelog_Click()
    Open App.Path & "/" & "PortPlus.Log" For Output As #1
    Print , Form1.Text1
    Close #1
    End Sub

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670

    Post

    Try

    Print #1, Form1.Text1

    instead.



    ------------------
    Mark "Buzby" Beeton
    VB Developer
    [email protected]



  3. #3
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670

    Post

    Oh.. and I would open the file for Append, not for Output, otherwise the file will be overwritten when you next write to it.



    ------------------
    Mark "Buzby" Beeton
    VB Developer
    [email protected]



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