Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pause code until operation is completed
Message
 
 
To
30/01/2002 22:08:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00613179
Message ID:
00613183
Views:
17
This message has been marked as a message which has helped to the initial question of the thread.
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 && We downloaded the file
   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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform