Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM error information
Message
 
 
À
08/04/2003 16:04:22
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00775231
Message ID:
00775241
Vues:
14
>hi,
>
>i have tried several methods but still haven't managed to get the object's class name displayed where error occured in COM server.
>
>COMCLASSINFO() seems like a good function but it doesn't work eather.
>
>for example: COMCLASSINFO(This,3) doesn't return anything when called from inside COM.
>
>(i'm using COMRETURNERROR() to populate COM error)
>
>thanks!

Try constructing your cExceptionText string in the error() method of your COM object. There you can use the cMethod parameter of the error() method for the specific method the error occurred in. In addition you can use THIS.Class to get the class name.

Hope this helps,
Jake
Wine is sunlight, held together by water - Galileo Galilei
Un jour sans vin est comme un jour sans soleil - Louis Pasteur
Water separates the people of the world; wine unites them - anonymous
Wine is the most civilized thing in the world - Ernest Hemingway
Wine makes daily living easier, less hurried, with fewer tensions and more tolerance - Benjamin Franklin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform