Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook object only works when Debug invoked
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00841740
Message ID:
00842102
Vues:
28
Yuri,

When I insert this code into my method, I get the error: "ActiveWindow does not evaluate to an object".

Here is the code:


With This
.oOutlook = Createobject( 'Outlook.Application' )
If Type( 'Thisform.oOutLook' ) = 'O' And Not Isnull( .oOutlook )
.oNameSpace = .oOutlook.GetNameSpace( 'MAPI' )
.oOutlook.ActiveWindow.WindowState = 2 &&normal, 0 - maximized
If Type( 'Thisform.oNameSpace' ) = 'O' And Not Isnull( .oNameSpace )
llRetVal = .T.
Endif
Else
llRetVal = .F.
Endif



Any ideas?

Thanks,

-Steve
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform