Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default unique ID values for a field in a remote table ?
Message
De
02/06/1998 15:32:55
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00103696
Message ID:
00104167
Vues:
46
Well, thanks for your great support !

So far the idea could be this :

1) lock the Id table
2) read the value
3) store on the view the value incremented by 1
4) attempt a TableUpdate()
5) if successful, write back the incremented value into the Id table
6) close the Id table
7) execute the code to handle the eventually failed TableUpdate, and when this is over, re-attempt the whole pass.

What do you think about it ?



>Hi Mike,
>
>I was actually trying to explain things to Andrea. Your concept is good, though the problem would come when you or more users start adding records in the same table and the users update records in a different sequence.
>
>Personally, I like to keep things much more simpler.
>
[...]
Sincerely,

Andrea Brajuka
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform