Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CREATEOBJECT, Then Make Calls
Message
De
08/09/1999 10:32:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00262384
Message ID:
00262395
Vues:
14
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform