Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem on Error
Message
From
25/10/2005 23:35:32
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Problem on Error
Environment versions
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01062117
Message ID:
01062117
Views:
52
Dear Experts

In my mian prg I use following codes to handle error routine
ON ERROR DO ERRHAND WITH ;
	ERROR( ), MESSAGE( ), MESSAGE(1), PROGRAM( ), LINENO( )

PROCEDURE ERRHAND
PARAMETER MERROR, Mess, MESS1, MPROG, MLINENO
MESSAGEBOX('Error number: ' + Ltrim(Str(MERROR)) + Chr(13) + ;
	'ERROR MESSAGE: ' + Mess + Chr(13) + ;
	'LINE OF CODE WITH ERROR: ' + MESS1 + Chr(13) + ;
	'LINE NUMBER OF ERROR: ' + Ltrim(Str(MLINENO)) + Chr(13) + ;
	'PROGRAM WITH ERROR: ' + MPROG, ;
	48, _SCREEN.CAPTION)
It works fine, but the problem is when some error window appears with OK button, I press OK button then programm immediately quits and exe is closed.

I want when error window appear, by pressing OK button the program must not be close.

Please help
Next
Reply
Map
View

Click here to load this message in the networking platform