Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making sure one occurence of the record is created
Message
 
To
25/04/2003 17:26:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00781704
Message ID:
00781721
Views:
20
>This won't work as additional line of codes are being process and we need to lock the entire set of commands to make sure that one doesn't go in as long as a series of command is not completed. See my other reply I just made.

Michel,

I would do as I think someone else is suggesting. Create a Candidate index on the fields involved. And instead of locating the record first, simply try to insert the record. Catch the error (if one occurs). If you catch an error, you know a record already exists. Then, you can locate it and update it if necessary.
_________________________________
There are 2 types of people in the world:
    Those who need closure
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform