Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Abstract Classes
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00026135
Message ID:
00026250
Views:
29
>I am happy to take your advice. What I am doing now is generating the number and , in a DO WHILE loop, SEEKing it and re-generating it until !FOUND(). If I put the primary key in a table, how do I generate it? By just adding 1 to its existing value? In a busy network, am I liable to face contention problems?
>
You would have to have a very busy network (100,000 new key's per minute to get problems)

Each record represents a table. Just add 1 to the value in the field and replace the field. Then use the value that was there before you added one to input the primary key. The time delay is between reading the value of the field and replacing it with one more (fraction of a millisecond). Doubt you would have problems but an error routine to capture violations in the primary key error could send back to get new key to fix this.
Todd Burstain, MD
infinitydoc@delphi.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform