Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if Outlook is installed?
Message
 
 
À
23/09/2004 06:49:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00945014
Message ID:
00945322
Vues:
33
>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
>
Thank you very much for your help!
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform