Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check if object exists
Message
From
26/06/2002 04:16:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Check if object exists
Miscellaneous
Thread ID:
00672350
Message ID:
00672350
Views:
32
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
Next
Reply
Map
View

Click here to load this message in the networking platform