Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making sure one occurence of the record is created
Message
From
25/04/2003 18:03:14
 
 
To
25/04/2003 17:57:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00781704
Message ID:
00781737
Views:
21
Gunnar --

Yeah, those things occur and you have alternatives.

For Michel, where he's trying to trap for occurences that happen more quickly than code can trap, using the data engine by forcing it to validate values thru a candidate key will ensure that no duplicates will be stored. So, if that's the best approach for him, there's a ready solution to address the "leakage."

Have a good weekend.


Jay

>hi Jay
>
>but then i have to switch between set deleted on/off. that looked to me like too much hassle. in the app i am working on currently records are beeing deleted by the users all the time. for this specific situation mostly out of stupidity from the user. because later they remember "duh, i needed that entry after all..."
>
>>This is easily resolved by SEEKing on the index expression of the candidate key and doing an UPDATE/REPLACE rather than an INSERT.
>>
>>Jay
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform