Okay so I've got my app retrieving and validating an ip from a website.
I now want to run a test when the app starts which loops through an array of urls and checks that ip retrieval works.
I would like to do this using my present asynchronous requests.
The problem is, I have an urlList array, but the asynchronous requests require a callback to determine whether the request was successful.
So this means two subs, so I can't use loop to iterate through the routine and then start back at the calling sub using the next url.
How can I get around this?
Would I have to use synchronous requests instead to keep it all in the same sub, but create a separate thread to stop my UI from freezing?
I should say, I don't want the array of urls to be checked in in multiple threads at the same time, I want to iterate through one url at a time so I can time the requests.
Cheers
Danny
I now want to run a test when the app starts which loops through an array of urls and checks that ip retrieval works.
I would like to do this using my present asynchronous requests.
The problem is, I have an urlList array, but the asynchronous requests require a callback to determine whether the request was successful.
So this means two subs, so I can't use loop to iterate through the routine and then start back at the calling sub using the next url.
How can I get around this?
Would I have to use synchronous requests instead to keep it all in the same sub, but create a separate thread to stop my UI from freezing?
I should say, I don't want the array of urls to be checked in in multiple threads at the same time, I want to iterate through one url at a time so I can time the requests.
Cheers
Danny