Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I replace the default 'Trigger Failed' message ?
Message
From
04/02/1997 12:35:33
 
 
To
04/02/1997 11:52:41
Alhad Marathe
Asm Consulting
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
User groups
Miscellaneous
Thread ID:
00019231
Message ID:
00019234
Views:
34
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform