Results 1 to 5 of 5

Thread: Simple Loop problem

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    92

    Simple Loop problem

    Code:
    Private Sub cmdret_Click()
    Dim n As Integer
    n = "1"
    myurl = "http://www.site.com/cgi-bin/locate.pl?id=" & n
    
    Do While n < 1000
       n = n + 1
    
    
    WebBrowser1.Navigate2 (myurl)
    Inet1.Protocol = icHTTP
    Inet1.Execute CStr(txturl), "GET /"
    
    While Inet1.StillExecuting
    DoEvents
    
    Wend
    call command1
    Loop
    'MsgBox "Done"
    End Sub
    What I am trying to do is loop through and change "n" each time until "n" reaches 1000. Must call command 1 each time "n" changes. Any help is appreciated.
    Last edited by tarctor; Oct 30th, 2003 at 12:19 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