Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening URL in default browser on specific window
Message
De
30/12/2016 15:57:58
 
 
À
30/12/2016 07:34:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01646212
Message ID:
01646225
Vues:
64
Hi Antonio
i am not sure in understand your question.
Shellexecute API can open an url (with the associated application, here the default browser).
no need to fetch the browser location,its public ).
&&shellexecute
DECLARE INTEGER ShellExecute IN SHELL32.DLL INTEGER nWinHandle,;
                                            STRING cOperation,;
                                            STRING cFileName,;
                                            STRING cParameters,;
                                            STRING cDirectory,;
                                            INTEGER nShowWindow
result = ShellExecute(0, "open", "http://msn.com","","",1)  &&navigator by default (what you want ?)
*result = ShellExecute(0,  "open", "iexplore.exe","http://msn.com","",1)  &&IE
*result = ShellExecute(0, "open", "firefox.exe","http://msn.com","",1)    &&Firefox
*result = ShellExecute(0, "open", "chrome.exe","http://msn.com","",1)     &&chrome
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform