Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to handle Errors within Class Error Method
Message
From
31/07/1998 11:19:43
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
How to handle Errors within Class Error Method
Miscellaneous
Thread ID:
00123077
Message ID:
00123077
Views:
45
Does anyone know how to stop the standard Visual Error message from being displayed when an error occurs within an error routine?

I have a Class that has several methods to handle error handling, which works fine in most error situations. It is called like this:

PUBLIC App_Name
App_Name = CREATEOBJECT("CisApp")
IF TYPE('App_Name') = "O"
ON ERROR App_Name.Disp_Err(Error(),Message(),Message(1),Prog(),Lineno(),SYS(16),.T.)
ENDIF

The problem occurs when inside one of my methods, I attempt to store the users name who has the error. If the Users table is opened exclusive somewhere else, when I attempt to open it, I get the standard windows error message, which I don't want the users to have displayed.

I have tried to do another on error statement within my error method, to display a error message using my screens which works, but it fires after the windows message has been displayed.

Any ideas?
John Henry
State of Michigan
Next
Reply
Map
View

Click here to load this message in the networking platform