Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if Outlook is installed?
Message
From
23/09/2004 06:49:26
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00945014
Message ID:
00945300
Views:
28
This message has been marked as the solution to the initial question of the thread.
This is very nice, but I am still working with VFP 6.0. Thank you very much for your suggestion.

You can still do this using VFP 6 but it is not as elegant, using code like this:
LOCAL llError, lcOnError
lcOnError = ON( 'ERROR' )
ON ERROR llError = .T.
loOutlook = CREATEOBJECT( 'outlook.application' )
IF NOT EMPTY( lcOnError )
  ON ERROR &lcOnError
ELSE
  ON ERROR
ENDIF
IF llError
  AERROR( laError )
  IF laError[ 1, 1 ] = 1733
    *** class definition not found
    MESSAGEBOX( [Outlook is not registered on this computer] )
  ENDIF
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform