|
-
Jul 17th, 2003, 02:15 PM
#11
Thread Starter
Lively Member
Hi,
Thanks with all assistance so far...
What I am trying to do is something like the following:
1) Start loop A running through a db looking for particular URLs
2) Start loop B looking at particular things in URL
3) Load webpage X (URL taken from db)
4) Get source of X and put in txtbox
5) Read some of Source X and put in record in database
6) Read part of record and collate with other info
7) Put all this in a lstvw, do some totalling and put in txtboxes
8) Go back to 2) and find next particular thing (repeat til all things found)
9) Go back to 1) look for Webpage Y, (repeat until webpage N)
10) Display the lstvw and txtboxes to user.
The problem is mainly my loops (starting at 1 through to 9 and 2 to 8). I can put steps 5) and 6) and possibly 7) in the download_complete sub but 8) and 9) are the "next" bits of a "for loop" these cannot go in the download_complete and not having them there yet having 5, 6, 7 there means the program seems to run something like the following:
Steps..
1>2>3>8>9>10>4>5>6>7 (probably not quite that but definitely wrong anyway). I know it definitely calls 10 before the webpage/source is displayed in their webbrowser/textbox because a messagebox is displayed found in sub 10 and the webpage hasn't even been displayed????
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|