Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Method of class.
Message
From
19/06/2000 15:00:23
Randy Riegel
Zimish Contracting
Ohio, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00381785
Message ID:
00381916
Views:
15
>Ok, so now show us the Error() method of that class and all of the classes it >inherits from.

Ok, the error method only contains a messagebox command and then quits. If an error occurs in this object I want the application to terminate. The object is a "custom" object based on the VFP base class CUSTOM.

Here is code in my Error method:

lparameters nError, cMethod, nLineno

messagebox("Fatal Error" + chr(13) + ;
"Error #: " + alltrim(str(nError)) + chr(13) + ;
"Error : " + message(1) + chr(13) + ;
"Method : " + cMethod + chr(13) + ;
"Line # : " + alltrim(str(nLine)) + chr(13) + chr(13) + ;
"Application will now shut down." , 16, "Fatal Error!")
quit
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform