Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default unique ID values for a field in a remote table ?
Message
From
02/06/1998 15:32:55
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00103696
Message ID:
00104167
Views:
47
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform