Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Routine: Error in Init
Message
 
 
To
08/05/1998 16:37:36
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00097787
Message ID:
00098212
Views:
31
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
Previous
Reply
Map
View

Click here to load this message in the networking platform