Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Uniqueness of index key violated.
Message
From
09/08/2002 07:54:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00687868
Message ID:
00687900
Views:
18
>Hi
>
>I am entering a reference no into a text box whose data property is one of the fields on a table. I get the above message when I enter a duplicate key as I have set the index up as candidate.
>
>My question is
>
>How do I trap this error so that I can use normal error handling routines?

Do you use buffering? If you do, you should get no error until you issue TableUpdate() (where it can easily be intercepted), or (in the case of record buffering), move to another record.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform