Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Meaningful error messages with referential integrity
Message
From
30/10/1997 17:21:45
 
 
To
30/10/1997 16:52:00
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00057494
Message ID:
00057500
Views:
27
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform