Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Starting browser
Message
From
15/04/1998 13:43:05
Ryan Hirschey
Federal Reserve Bank of New York
New York City, New York, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00092196
Message ID:
00092203
Views:
18
>How can I launch the default browser installed on any WIN 95 or NT PC from a VFP 5.0 application, and direct it to a specific URL. I'm guessing that there is some registry reading involved. Thanks for any help in advance.

Coming straight from Rick Strahl's excellent FoxPro Advisor article:

LPARAMETERS tcURL, tcAction

tcURL = IIF(TYPE("tcURL")="C",tcURL,"http://www.west-wind.com/")
tcAction = IIF(TYPE("tcAction")="C",tcAction,"Open")

DECLARE INTEGER ShellExecute IN shell32.DLL;
INTEGER nWinHandle,;
STRING cOperation,;
STRING cFileName,;
STRING cParameters,;
STRING cDirectory,;
INTEGER nShowWindow
DECLARE INTEGER FindWindow IN win32api;
STRING cNull, STRING cWinName

RETURN ;
ShellExecute (FindWindow(0,_SCREEN.CAPTION),tcAction,tcURL,"",SYS(2023),1)


Where tcURL is the web address and tcAction is an optional Action parameter (usually "Open")
Ryan Hirschey
Previous
Reply
Map
View

Click here to load this message in the networking platform