Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell if Microsoft Outlook is running?
Message
 
 
À
22/07/2002 13:17:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00680980
Message ID:
00681309
Vues:
21
>>Hi all -
>>
>>I would like to be able to tell--within a VFP 6.0/7.0 application--whether MS Outlook is also running on the user's workstation. If Outlook is NOT running, I would like to start it.
>>
>>What is the best way to accomplish this?
>>
>
>Unlike the other Office applications, when you issue CreateObject("Outlook.Application"), it attaches to a running instance, if there is one, and starts a new one otherwise.

Use GetObject(,"Outlook.Application") instead. You do need to trap for an error because one will be generated if an instance does not exist.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform