[Resolved] A Quicky about Text on a web page...
Is it possible to download all the text off a webpage without having your program freese up?
When i use Inet to get text off a webpage, my program freeses until the text has been recieved.
Also this would be useful if i store large files on a website, i could use somthing to get them off it, but the only problem is that the program will be frosen for long amounts of time...
Is there any way to prevent the program from freesing?
Re: A Quicky about Text on a web page...
Use the doevents while your prog isbusy downloading the file.That will make your app respond to external events.
Re: A Quicky about Text on a web page...
Ummmm?
Dim Stuff As String
Stuff = Inet1.OpenURL("http://www.google.com/index.html")
Where does a Do, Loop and DoEvents fit in there???
Maybe an external process has to be started, i just don't want it to be too complecated.
Re: A Quicky about Text on a web page...
Using DoEvents will not work with the Inet control, nor will it work with the popular DownloadToFile() API.
I suggest you use the Winsock control, which can download files asynchronously, so your app won't freeze up while it is downloading.
Here is a sample app that uses winsock to download files, and here is another sample app that uses multithreading to download multiple files.
Hope this helps :wave:
Re: A Quicky about Text on a web page...
Re: [Resolved] A Quicky about Text on a web page...