Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using MAPI Controls without a Form
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00705905
Message ID:
00706204
Views:
13
Chuck,

There's some sample code over on my website. It's under Q&A, General, article qgen015

>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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform