Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running an HTML from within VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00143419
Message ID:
00143923
Vues:
29
>>>>>I have the following in a procedure for one of my menu choices:
>>>>>
>>>>>LOCAL oIE
>>>>>oIE = CREATEOBJECT( "INTERNETEXPLORER.APPLICATION" )
>>>>>oIE.Navigate( "http://ammo-eng" )
>>>>>oIE.visible = .T.
>>>>>
>>>>>This runs internet explorer OK but will not work in the real world because I make the assumption that they have IE. Does anyone have any VFP code out there that figures out from the system (the persons computer) if they have a browser and how to call it with the parameter of http://ammo-eng, so the persons own default browser will come up and show the web page.
>>>>>
>>>>>TIA
>>>>
>>>>Seems this has been my favorite rsponse lately... :-)
>>>>
>>>>oShell = CREATEOBJECT('Shell.Application')
>>>>oShell.Open('http://ammo-eng')
>>>>
>>>>will get the job done.
>>>
>>>How would you do any error checking, just in case the user does not have a browser?
>>
>>IN this case, if the user does not have a browser, the user gets the file association dialog. To find if a machine has the .htm files extension registered as a file type, check the registry under hkey_classes_root.
>
>Do you know of a good class that is available to enter a key and it tell me if the registry has that key registered?

There is a registry class available here in the files section (I think under Win32 API Classes).
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform