Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to trap errors reported by OLEcontrols (MAPI)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00277097
Message ID:
00277110
Vues:
31
>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.

According to the help file... element 7 contains "Numeric. An OLE 2.0 exception number"


Wayne
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform