Results 1 to 5 of 5

Thread: Multiple executions with Inet

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Location
    Atlanta
    Posts
    104
    I want to execute multiple ftp commands using the Inet component.

    The code looks like this

    Inet1.Execute , "GET standard.eb2 c:\standard.eb2"
    Inet1.Execute , "GET includes.eb2 c:\includes.eb2"
    Inet1.Execute , "GET users.eb2 c:\users.eb2"

    But I get an error message that says "Still executing last request."

    What is the best way to remove this problem?..

    I've tried checking the Inet state to make sure it was finished, but couldn't really do anything with that.

    Any Ideas?

    Jeremy

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Code:
    'Place this in between each inet action
    'Action
    Do While Inet1.StillExecuting
        DoEvents
    Loop
    'Action
    Gl,
    D!m
    Dim

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Location
    Atlanta
    Posts
    104
    Thanks.. I actually tried something very similar. Can you tell me why this didn't work?

    Do until Inet1.StillExecuting = false
    Loop

    Anyway, thanks for the help. =).

    Jeremy

  4. #4
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Could it be because you left out the DoEvents
    Which pauses the sub on that action until it's complete.

    D!m
    Dim

  5. #5
    Guest

    Thumbs up

    If you just want it to send a page request to the site and not actually download the source then try this:


    Code:
    Private Sub Inet1_StateChanged(ByVal State As Integer)
    If Inet1.state=7 then
    Inet1.Cancel
    End If
    End Sub
    State 7 means that it has sent a request to the server and its responding....

    gantic


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