Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Cursor Adapter adds new rows/records
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01499473
Message ID:
01499484
Vues:
37
This message has been marked as a message which has helped to the initial question of the thread.
>Hi,
>
>Do I understand correctly that when a program calls TableUpdate() on the cursor created with CA the new records/rows are added for those records that have no value in the PK field (in case of SQL Server database) or a new value in case of the VFP database?
>
>And if the above assumption is correct, does it mean that I can take a record of the cursor (retrieved) from the base table, blank the PK field, and then TableUpdate() and Cursor Adapter will create a new record in the base table?

No, it would not work this way. If you added new records, they will be added, but you can not wipe out the primary key of existing records to make them 'new'.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform