Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error Routine: Error in Init
Message
 
 
À
08/05/1998 16:37:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00097787
Message ID:
00098212
Vues:
32
Matt,

The way I handle errors within objects, is to have each of my baseclass objects derived from the VFP Classes is to put this in the Error Method:

ObjError( this, nError, cMethod, nLine )

If individual objects can have handleable errors they can handle it and just return, if they can't they pass the error on to ObjError()

My ObjError.PRG then deals with it. My ON ERROR is do ObjError with .null., error(), program(), line()

Can you trace the code and find the code that is causing the problem?

>I am not getting information on my error form whenever the error occurs in the INIT of a form. The error in the INIT of a form varies.
>
>Maybe I am asking the wrong question.... What is the preferred way of handling errors? I have been told that you should use an ON ERROR routine for general errors, but handle errors in data entry (conflicts) separately.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform