Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I replace the default 'Trigger Failed' message ?
Message
De
04/02/1997 12:35:33
 
 
À
04/02/1997 11:52:41
Alhad Marathe
Asm Consulting
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Groupes d'usagers
Divers
Thread ID:
00019231
Message ID:
00019234
Vues:
36
>When I seup database triggers for a table the default 'Trigger Failed' message is fired if the Trigger fails. How can I replace this message with my own message. If I call a function from the trigger to display the message, the default message still fires after my message.

You could trap error in code:
Local lErrorflag
ON ERROR lErrorflag=.t.
INSERT into .... && any command may cause trigger failed
ON ERROR
IF lErrorflag=.t.
**** error handling code
=messagebox(.....)
ENDIF
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform