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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only