Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web Browser Control delay
Message
 
À
20/01/2001 19:10:03
Bob Tracy
Independent Consultant
Driftwood, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00466292
Message ID:
00466298
Vues:
9
>I've got an app that uses the Web Browser Control to display some XML and text on a form. When I give it the Navigate2(filename) on my development machine (W2K/P3/450/128), it works just fine. On my test machine (W2K/P2/400/128) I had to throw in a delay (FOR N = 1000000/NEXT n) after issuing the Navigate2 command or it would never display the loaded document. I checked the DownloadComplete Event and it was firing (without the delay) but nothing was being displayed. I got the clue for the delay since the crazy thing would work every time in the debug mode if I had a breakpoint prior to the Navigate2 and then single stepped through the loading.
>
>The IE5 versions are slightly different (5.00.3103.100 on the development machine and 5.50.4134 on the test machine) and a corresponding difference in versions of the SHDOCVW dll.
>
>I've got the thing working with that stupid delay but I HATE programming like that! Anyone have any ideas or has seen this before?

Did you try running a loop checking for the value of readystate or documentcomplete?

lncomplete=4
do while readystate<>lncomplete
enddo
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform