Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CREATEOBJECT, Then Make Calls
Message
From
08/09/1999 10:32:03
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00262384
Message ID:
00262395
Views:
15
CreateObject returns an object which must be assigned to a variable. Try the following modifications (in bold):
<B>LOCAL oMAPI</B>
SET CLASSLIB TO MAPIMail ADDITIVE
<B>oMAPI = </B>CREATEOBJECT("cusMAPI")
<B>oMAPI</B>.SendMail("","","CHUCK HENRY","Change Order Test","Testing Body Text","ChgOrder.txt","","")
The error you are getting is because cusMAPI is a class, not an object. CreateObject creates an object based on the class given in parameter.
Sylvain Demers
Previous
Reply
Map
View

Click here to load this message in the networking platform