Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to trap errors reported by OLEcontrols (MAPI)
Message
De
15/10/1999 16:57:39
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00277097
Message ID:
00277117
Vues:
31
when the error code is 1427 or 1429, element 3 of AERROR() contains the OLE message, and element 7 should contain the code.

>Hi Mike,
>
>Thanks for the info.
>Unfortunately, the array populated by AERROR() does not contain the OLE error code, it contains just the message and the description.
>
>>
>>>Any error that occurs in OLE controls (like MAPI, which I am currently working with), is reported by VFP as errror code 1427 or 1429 and the error message returned by the OLE control. Most of the time I also need to know the error code reported by the OLE control, like 32001 in MAPI is User cancelled action. That would be good to know and not report it as an error.
>>
>>Where ever you trap the 1427 - 9, you can do an AError() to grab the OLE specific info.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform