Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AERROR
Message
De
06/07/1999 15:53:54
Kenny Norton
Dataforce Systems Inc
Atlanta, Georgie, États-Unis
 
 
À
06/07/1999 14:20:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: AERROR
Divers
Thread ID:
00237782
Message ID:
00237917
Vues:
12
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...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform