Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AERROR
Message
From
06/07/1999 15:53:54
 
 
To
06/07/1999 14:20:03
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: AERROR
Miscellaneous
Thread ID:
00237782
Message ID:
00237917
Views:
11
Thanks Erik,
This is a clip of the delete routine in trouble. Like you said, AERROR returns the last VFP error, however, this is a new "legit" delete that is failing. How do you trap failed and successful triggers???

DELETE IN (.cPrimaryAlias)
IF AERROR(aDeleteError) > 0
IF aDeleteError[1] = 1539 ; && Trigger failed
AND aDeleteError[5] = 3 ; && Delete Trigger
.Error(aDeleteError[1]) && For message Only
.Revert()
RETURN .F.
ENDIF
ENDIF AERROR(aDeleteError) > 0

Thanks...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform