How about the following lines:
lnStartTime=seconds()
lnElapsedTime = seconds()- m.lnStartTime
do while m.lnElapsedTime < MAX_WAITING_TIME and !m.llInterrupt
if adir(laFilesToDownload,m.lcFileName)>0 ;
and laFilesToDownload[1,2]=ActualFileSize
exit
endif
lnElapsedTime = seconds()- m.lnStartTime
enddo
This code is of the top of my head and not tested, but should give you the idea.
>I use the following code to get data from the internet.
>
> x = NEWOBJECT("_webform", HOME()+"\gallery\_webview")
> x.olewebbrowser.navigate2("
http://quote.yahoo.com")
> x.show()
>
> *** subsequent code follows which uses the data that is downloaded.
>
>The problem is that the subsequent code runs before I get the data downloaded.
>
>I can put the web access in one command button and the subsequent code under another command button and have it two step process. However, I would prefer to have the user click only one command button.
>
>Any thoughts would be appreciated
>
>Thanks
>Gaylen Jungling
If it's not broken, fix it until it is.
My Blog