Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using run command to open a CGI web page.
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00359550
Message ID:
00360469
Views:
8
>I tried using the Shell Execute function listed in Rick Strahl's "Internet Appplications with Visual FoxPro 6.0, but it didn't seem to work, or else I just don't know how to get it work.
>
>What does work, however, is his second suggestion using the COM interface:
>
>o=CREATEOBJECT("Shell.Application")
>o.Open("Http://www.mxdesign.net")
>
>This pops open a Internet Explorer Browser which then goes to the site.
>
>However, if you have Netscape defined as your default internet browser, it pops open both of them. (and gives an error dialog as well, saying "can't find one of the components...blah blah blah). I would love to fix this problem, as the client that I'm using this method for has Netscape as their default browser.
>

Shell.Application fires an instance of InternetExplorer.Application for the Open method; don't know what you can do about this. You might try simply instancing InternetExplorer.Application and passing it the URL to open to its Navigate method. Take a look in the MSDN under Web Workshop | Reusing Browser Technology | Navigate Method, or in the Index under Navigate Method
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform