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:
01499500
Views:
29
>>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'.

Thank you very much for the explanation.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform