Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generating Sequential Unique Numbers
Message
 
To
16/08/2001 08:21:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00544550
Message ID:
00544878
Views:
14
>Look at the Primary Key article on my web site. It works for PKs, but if you must have sequential numbers, you are going to have problems. What happens if someone cancels the Add or deletes a record? You'll be missing a number. IMO, don't assign the number until the user actually saves the record.

Actually this is the workaround I have implemented in this kind of case. And it works fine.
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain
Previous
Reply
Map
View

Click here to load this message in the networking platform