home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
database
/
do1beta.zip
/
ONERROR.DO
< prev
next >
Wrap
Text File
|
1991-07-31
|
593b
|
23 lines
/*
demonstration of the Int::onError() method
this method is called whenever dObject detects a parse or runtime
error in a program; normally dObject creates a 1-line window
at the bottom of the display screen and prints out the error
number, an error message, and the statement where the error
was detected. you can re-define this method to handle errors
for your own applications
*/
method Int::onError(self)
{
w = new(Window,1,112,112," Error ",10,10,5,50);
? "ERROR ",errorMessage("do.err",self);
inkey();
remove(w);
}
/*
cause an error
*/
exit(10002);