DOC: ON ERROR Not Invoked when Error Occurs in Error EventID: Q136071 The information in this article applies to:
SUMMARYWhen an error occurs while executing an object's Error event procedure, Visual FoxPro suspends execution and displays the error message. Even an ON ERROR routine currently in effect is ignored. The Visual FoxPro Help file gives the following information about the Error event:
This is incorrect. When an error occurs while executing an object's Error
event procedure, Visual FoxPro suspends execution and displays the error
message. Even an ON ERROR routine currently in effect is ignored.
MORE INFORMATIONIf code placed in an Error event handler can itself generate an error, place all error-handling code within the ON ERROR routine. An object's Error event procedure is triggered when there is a run-time error in a method of that object. Using the Error event allows you to define code to handle an error at the object level.
Code to Reproduce Behavior
|
Last Reviewed: May 23, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |