Results 1 to 9 of 9

Thread: VB 6.0 do loop error (resolved)

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2004
    Posts
    9

    VB 6.0 do loop error (resolved)

    Hi, i've got a DO - LOOP, but after running it once, it stops, and exits the sub (I think, 'cause he doesnt do the actions after the loop)

    (the file he opens has more than 1 line, so he must run the loop more than 1 time)

    here is the code:

    fnum = FreeFile
    Open file_name For Input As fnum

    TreeView1.Nodes.Clear
    Do While Not EOF(fnum)
    ' Get a line.
    Line Input #fnum, text_line

    getip = Left(text_line, 15)
    getnick = Mid(text_line, 16, Len(text_line))

    TreeView1.Nodes.Add , , "ip" & getip, getnick, 1

    Loop

    Close fnum


    does anyone know why he does this?
    tnx
    Last edited by Deefeketje; Jun 7th, 2004 at 05:23 AM.

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