Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Starting browser
Message
De
15/04/1998 13:43:05
Ryan Hirschey
Federal Reserve Bank of New York
New York City, New York, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00092196
Message ID:
00092203
Vues:
19
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform