Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's with the Pack command?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00269678
Message ID:
00269700
Vues:
17
>This notion of , a record is not really deleted until a “Pack” is strange to me and is causing me to reconsider some basic design philosophies. If the user deletes a record from a table that has a primary key, is there a way for that user to re-enter that record before a pack procedure? If not then how to VFP programmers get around this?

To add to what John said, I think you'll find that most people use a surrogate primary key. You add a field for the key, and it's value is a unique number. You can store the last used number in a separate table and each time a record is added, increment that last used number. This field would only be used internally in your app, the user would never see it.

hth
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform