Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Afraid that autoincrementing integer field skips ahead
Message
From
31/08/2010 07:37:53
 
 
To
31/08/2010 07:12:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01479307
Message ID:
01479396
Views:
57
>In Visual FoxPro 6, I have used a default value (with a function that gets a value from a table), and values are skipped mainly under the following circumstance: the user adds a record, then decides not to save (and presses the "Undo" button in the form). In this case, the number was already used, and won't be assigned again.

Or get the new PK only when the actual save to DB is asked for -
even if it gets more complicated if child records need the PK as FK...

regards

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform