Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handle Duplicate record
Message
From
17/03/1999 23:30:36
 
 
To
17/03/1999 21:37:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00199025
Message ID:
00199045
Views:
16
Hi Oliver ---

If the entry can be duplicated by the user, it's a poor candidate for a primary key. You are going to have problems with this. Your best bet is to have a second field with a unique or sequential value assigned by a stored procedure -or- other methid/function. Then, you can accept the duplicate value and check it versus the rest of the database in the Grid's AfterRowColChange method and/or at Save time.

>How can I handle the dupliate record in the grid. The table has one field and index on this field (using primary index).
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform