Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Errors trapping
Message
De
21/08/1997 04:37:55
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Errors trapping
Divers
Thread ID:
00046067
Message ID:
00046067
Vues:
61
I encountered this problem :

In the method init of a form I put the instruction "On error do loc_err with(error())"
this routine would prevent the system by giving me the error 1884 ( "Uniqness of index violated")
But if I generate a record with a duplicate key the error routine is not processed.

Here is the error procedure :

******************
Procedure loc_err
parameters errno
if errno = 1884
=tablerevert(.f.)
else
.........
endif
******************

But it is not processed

Thanks
Alessio
Répondre
Fil
Voir

Click here to load this message in the networking platform