Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On Error
Message
From
03/07/2003 16:47:27
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
On Error
Miscellaneous
Thread ID:
00806739
Message ID:
00806739
Views:
47
Hi

I have event error code loaded in my form. As I am exiting I wish to reopen a table in exclusive mode to pack it.

I have the following code
lHadErr=.F.
ON ERROR lHadErr=.T.
USE wDbc!myfile IN 0 ALIAS ml EXCLUSIVE
IF NOT lHadErr
	SELECT ml
	SET SAFETY OFF
	PACK
	SET SAFETY ON
	USE
ENDIF
ON ERROR
which I assumed would override the code in the form.

Unfortunately, it doesn't. Is it supposed to work this way???

Why can I not temporarly suspend the default error routine and then reinstate it by clearing the error with
ON ERROR
Somewhat confused
Geoff Scott
May all your weeds be wildflowers
Next
Reply
Map
View

Click here to load this message in the networking platform