Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check if object exists
Message
De
26/06/2002 04:16:31
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Check if object exists
Divers
Thread ID:
00672350
Message ID:
00672350
Vues:
33
Hi

I have a method that "attempts" to check if IE is installed on a user's PC, here is my code:
*--------------------------------------------------------------
*Method	: InternetExplorerInstalled
*Author	: Kevin Lawrence
*Date	: 04/12/2001
*--------------------------------------------------------------
*Desc	: Checks for install of Internet Explorer
*--------------------------------------------------------------
LOCAL loIe, llError

*Turn off error trapping
ON ERROR llError = .T.
loIe = CREATEOBJECT("InternetExplorer.Application")
loIe.Quit()
ON ERROR

RETURN (llError = .F.)
This works fine from the commandline, but if it can't find the object when run in my compiled application it produces an error of "InternetExplorer.Application" class not found!

Is there another way to check if an App like IE is installed.

Thanks
Kev
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform