Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper Way To Check For Duplicate Primary Key
Message
 
 
To
22/06/2001 22:11:06
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00522709
Message ID:
00522797
Views:
9
>What is the most efficient way of handling this?
>Assuming I have a compound PKEY or CANDIDATE
>should I do a SEEK before modifying a one of
>the components or is it more efficient to trap
>for the error?
>
>   ...kt

I usually do both. Not sure, it's the right approach (I had several discussions here about this problem), but this is how it works in our system (single tier):
I have a special textbox class, which checks for uniqueness of the entered value (if it's not unique, User can correct it immediatelly) and our form also has some mechanism to deal with errors on the save stage.

Let me know, if you want more details.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform