Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Customizing VFP update table error messages
Message
From
07/07/1999 13:20:34
 
 
To
07/07/1999 13:12:54
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00238394
Message ID:
00238399
Views:
11
>When adding a duplicate key in a table with a primary index, VFP generates a canned message, something like "Cannot update table. Uniqueness of index is violated.", or something like that. How can I customize this message. This should be easy!

This is easy if you usse table buffering. Then VFP won't throw an error message, the TABLEUPDATE command will fail. Just check the results of TABLEUPDATE, and if they are false, check the contents of AERROR to see if it was a trigger or whatever, and deal with it.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform