Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for Outlook
Message
 
À
11/02/2000 17:32:53
Carla Fair-Wright
Optimal Consulting Llc
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00331144
Message ID:
00331152
Vues:
12
>How do you determine if outlook is open.
>
>In the code:
>
>objSession = CREATEOBJECT("MSMAPI.MAPISession")
>objMessage = CREATEOBJECT("MSMAPI.MAPIMessages")
>...
>....
>objSession.SignOn
>
>At the SignOn I get a 1429 error if Outlook is not open.

Hi Carla,

Try this code:
IF TYPE( "objSession" ) = "O"
  objSession.SignOn

ENDIF && TYPE( "objSession" ) = "O"
If you're using VFP 6, you can substitute VARTYPE( objSession ) for the TYPE( "objSession" ) statement.
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform