Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to be sure of the sequence?
Message
De
23/11/2001 16:35:52
 
 
À
23/11/2001 15:57:03
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00585224
Message ID:
00585241
Vues:
43
This message has been marked as a message which has helped to the initial question of the thread.
>I'm using the WebBrowser object. Here is what I want to do.
>
>get the page URL in web object
>Specify another web page
>DODEFAULT() ;Go to another web page
>get the page URL in web object
>
>
>THe thing is that when I do this it looks like the second time I get the page URL I get the same as the precedent because the DODEFAULT() did'nt end its job yet. It's like because it's an OLE object it's working through its DODEFAULT() code but gives back control to the application before DODEFAULT() is finished.
>
>Is there a way to get the page URL only when DODEFAULT() has finished its job?

I'm not sure if I understood your question properly, but if your app responds to the WebBrowser DocumentComplete event maybe you'll be able to fine-tuning the sequence of events you're trying to control (wait for DocumentComplete; then go for the next page or whatever needs to be done...)

bye
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform