Information générale
Catégorie:
COM/DCOM et OLE Automation
Somehow, VFP always returns the exception code 0 as 7th elementh of AERROR()
>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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement