Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Cursor Adapter adds new rows/records
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01499473
Message ID:
01499484
Views:
36
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform