Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class error handling
Message
 
À
19/01/2004 05:01:48
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00868040
Message ID:
00868041
Vues:
15
>I have a utility class and I want to isolate class specific errors.
>There is a way to, if an error occurs, to stop method code execution, write error
>info in a class text property and then return .F. to calling program/form ?
>I don't want to stop entire application or write into a error log, just stop and
>report error information in that text property.
>
>Is possible soemthing like this? (VFP 7)

I think you could probably handle this with code in your class objects' Error methods. Do you need more specific information than this?

Update: You might also need RETURN TO PROGRAM(n) at the end of the Error method, "n" being dependent on how many layers you need to go back to get to the right place.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform