Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to know if Outlook is present on a comput
Message
From
04/10/2000 11:40:37
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00424635
Message ID:
00424778
Views:
13
>How can we tell from VFP6 if outlook is installed on the computer ?
>Is it possible to also know if Delrina WinFax Pro is there ?
>
>thanks
>eric

Both of these apps allow a degree of automation, so I would try to create an object of each type and if you get an error, then it isn't there.

e.g.
PRIVATE lError, loObj
lError = .f.
ON ERROR lError = .t.
loObj = CREATEOBJECT("outlook.application")
ON ERROR
IF lError
? "outlook isn't here!"
ENDIF

I'm not sure what the class name would be for WinFax pro - if you search the archives, there are plenty of examples of WinFax automation.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Reply
Map
View

Click here to load this message in the networking platform