Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using MAPI Controls without a Form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00705905
Message ID:
00705909
Vues:
9
Try
oSession = NewObject("MAPISess","MAPIClas.vcx")
oMessage = NewObject("MAPIMsgs","MAPIClas.vcx")
>Is there any way to use MAPI in a stand-alone VFP 6.0 compiled .exe (no forms - no user interface) to email updated files. I've done this within a form before by starting out like this...
>
>ThisForm.NewObject("Session1","MAPISess","MAPIClas.vcx")
>ThisForm.NewObject("Message1","MAPIMsgs","MAPIClas.vcx")
>
>Of course, code like the above apparently cannot be used outside of a form because it generates the following error: "Program Error THISFORM can only be used within a method." Would appreciate any advice. TIA.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform