Results 1 to 2 of 2

Thread: Record a log file from form......How?

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Posts
    52

    Wink

    Hello,

    If i want to record the ocntents of two text boxes and a condition (i.e Username, time and success/failed login attempt) into a log file what is the best way of doing this.


    I only want to append a log file not actually replace the last entry. That way i have an ongoing log of entries and successful/unsuccessful logins.

    Any tips?

    Regards
    M.

    (VB6 Pro edition)

  2. #2
    Lively Member
    Join Date
    Jul 2000
    Location
    Lost in the Mojave Desert
    Posts
    82
    filnum = FreeFile

    Open "c:\mydir\myfile.txt" For Append As filnum

    Print #filnum, Text1.Text
    Print #filnum, Text2.text
    Print #filnum, etc....
    Print #filnum, etc....
    Print #filnum, etc....
    Print #filnum, etc....


    Close #filnum



    Hope this helps

    [Edited by Bam_BamIR on 11-29-2000 at 09:26 PM]
    Don't go away mad, just go away.

    Bam-Bam

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