Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error Handler in a class
Message
De
23/12/1998 09:42:34
 
 
À
22/12/1998 12:19:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00169701
Message ID:
00169961
Vues:
39
>I'm trying to create an error handler in a class I'm working on, but I'm having a problem with object references.
>
>I want to do something like:
>
>ON ERROR DO THIS.HandleError WITH PROGRAM(), LINENO(), ERROR()
>
>But when I encounter errors, I get an error that "this.handlerror does not exist."
>
>I also tried doing it as a function call rather than a procedure, but I got an error that "THIS cannot be used outside of an object."
>
>What is the big secret one must "get" to do an error handler in an object?
>
>-- jas

There is an excellent article on VFP error handling at www.stonefield.com
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform