Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Field-level rules vs. code in the Valid event
Message
 
To
04/05/1998 14:36:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00096287
Message ID:
00097002
Views:
32
Right...and it just depends on where you draw the line. Why is a generic form level error handler better than a generic application level handler? Would the code not be the same?

Take care,
Joe

>>Haha...well, if a global error handler was in place, at least the error would be handled and the user wouldn't have experienced a crash...some situations demand that the program gets out to the user by a deadline...and object-specific error handling is not always a priority.
>>
>>Are you suggesting a global error handler is not be better than sitting back and waiting until the program crashes on the user in those spots where you forgot to program error handling code?
>>
>>Joe
>>
>
>
>Not at all. As I recall, there wasn't an error handler to begin with and someone said "The global error handler should catch it". I simply pointed out that there is a more OOP way. BTW, if you read the article I suggested (www.stonefield.com), you'll find that errors are also trapped at the parent class level, thus handling the situation where you need to get the program out. IF a particular object does not have its own error code, the error handler travesl up the parent class chain. If it still doesn't find anything, it starts looking at the form, and traveling up its parent class chain. If it still doesn't find anything, the global handler is called.
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform