Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Launching Internet Explorer
Message
 
 
To
12/04/2005 16:14:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01003946
Message ID:
01003976
Views:
17
>I'd like to be able to launch Internet Explorer and navigate to a web site based on the contents of a field. The web page's address will not necessarily have an .htm or .html extension. For example: http://www.microsoft.com/support
>
If you want to launch default browser, you can use ShellExecute() or WSH Run method
lcUrl = "http://www.microsoft.com/support"
DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
    INTEGER hwnd, ;
    STRING lpVerb, ;
    STRING lpFile, ;
    STRING lpParameters, ;
    STRING lpDirectory, ;
    LONG nShowCmd

= ShellExecute(0,"open", lcUrl, "","",1)
*
oShell = createobject("WScript.Shell")
oShell.Run(lcUrl, 1)
References:
- ShellExecute API #12636
- http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthrun.asp?frame=true
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform