Results 1 to 4 of 4

Thread: add to txt file

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Posts
    86
    hi,

    how can i add something what i typed into a textbox to a txt file??

  2. #2
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Belgium/Antwerp
    Posts
    275
    This will add a line to a textfile:

    sSchrijfString = me.txtName.text

    Dim n As Integer
    n = FreeFile

    Open "C:\test.txt" For Append As #n

    Print #n, sSchrijfString

    Close #n

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Posts
    86
    wat bedoel je met :

    sSchrijfString = Me.txtName.Text ?????

    me.txtName.Text -> kan ik dit vervangen door de textbox (text1.txt)? ??

  4. #4
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Belgium/Antwerp
    Posts
    275

    Question

    Me.txtName.text is a textfield on the form so you can replace it with text1.txt or a regular string.

    The Me keyword is just a way of easily find the controls on your form / acces properties and methods of your form.

    Regards,

    Luc

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