>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
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?