Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recognizing the success of a Web call
Message
From
09/06/2001 10:55:36
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00517245
Message ID:
00517383
Views:
18
>>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.

This works well. However, when passing a mailto to fire the mailer, it takes everything so it's always a success on that one. <s>
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform