Results 1 to 3 of 3

Thread: Inet Control Problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    13

    Post

    Hi,

    I'm using the Inet control to download a file from my FTP server....

    Once the file is downloaded I want to open it and read in the contents...

    The problem is once the file is download the program tries to open it before it has been written to...so there is an access violation.

    Is there a way I can make the program wait for the server to finish downloaded the file first?

    Thanks

    Zotud

  2. #2
    rsitogp
    Guest
    where did you place the open command?

  3. #3
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Just place a Do Until loop with syntax something like:
    Code:
    Do Until Inet1.StillExecuting
     'Download
    Loop
    'Then place the open file syntax
    or you could also place DoEvents between the two operations.

    Gl,
    D!m
    Dim

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