Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I handle error in non-visual class?
Message
De
08/10/2004 22:53:04
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00949854
Message ID:
00950116
Vues:
20
>I didn't try the TRY ... CATCH. It didn't seem like that would fix the problem. It seems like the real problem is when the error occurs within the object itself (i.e. the object's code) and calls the external error procedure. I guess to me, it seems like the try catch would still be doing the same thing ... internal error handled by an external procedure.

Are you using the .error() method of the object? Is there any code in it? You could use that to log the error and tell the object to do a harakiri, i.e. exit gracefully. Provided it's based on a class which has a .release() method, it should be able to do that.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform