Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recognizing the success of a Web call
Message
 
To
08/06/2001 17:21:13
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00517245
Message ID:
00517347
Views:
14
This message has been marked as the solution to the initial question of the thread.
>Using ShellExecute to call a Web page, is there a way to know if it was successfully loaded? What I mean is that if we have a value that can't be interpreted by ShellExecute(), nothing will happen. How do we detect that in VFP? I would like to return a messagebox to tell the user that the value is not recognized to be interpreted as a URL.

Any value over 32 means the call succeeded and the URL was probably alright. You can't tell whether the page loaded though. If hte URL is bad (ie malformed) the error will occur immediately, but if the page fails to load because the server is down, it will still return OK because the browser is run async.

You can use the IE application object instead. There you can check for document complete events etc.

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform