Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making sure one occurence of the record is created
Message
 
À
25/04/2003 17:26:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00781704
Message ID:
00781721
Vues:
21
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform