Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Meaningful error messages with referential integrity
Message
De
30/10/1997 17:21:45
 
 
À
30/10/1997 16:52:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00057494
Message ID:
00057500
Vues:
32
>This should be something simple...
>
>I have setup referential integrity with the RI builder....
>but how do I make meaningful error messages appear instead
>of the standard:
>
> Failed to update table: Trigger Failed
>
>Thanks in advance,
>
>Tony

Have a look at the code that the RI builder generated (rierror). YOu can use the gaerrors array to tell what happened and why the trigger failed, and build your own error messagebox depending on which trigger failed. Basically you are modifying the RI's built in error handler. Make a copy of your custom code, however, because the next time you re-generate RI code, it will probablt write over it.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform