Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running IE with VFP
Message
De
24/01/2000 19:15:05
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00321928
Message ID:
00321940
Vues:
18
>Hi all
>
>I'd like to run IE from a menu in one of my applications that calls IE and then navigates to a specific web address. In my last message (which heaps of people responded to) I got some really good feedback - but unfortunately I didn't understand much of it! I've tried to use the ShellExecute() command without much success...
>
>Does anyone have some sample code that I could perhaps "borrow" that calls IE and navigates the user to a web address????
>
>Thanks & thanks everyone who responded last time as well!
>
>
>Chris Kable
>FuelTrac

oIE = CREATEOJECT("InternetExplorer.Application")
oIE.Navigate("www.levelextreme.com")

or

oShell = CREATEOBJECT("Shell.Application")
oShell.Open("http://www.levelextreme.com")

or

DECLARE Long ShellExecute IN Shell32.dll Long, String, String, String, String, Long

Shellexecute(0,"Open","c:\MyFile.doc","","",0)

Only the last one will work with any browser.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform