Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CA RefreshCursor for one record
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01501152
Message ID:
01501163
Views:
38
>>>>>>Hi,
>>>>>>
>>>>>>I was wondering if there is a method (or a parameter in a method) that would allow me to refresh just one record in the cursor of the CursorAdapter. The RefreshCursor, I think, will refresh/update all records. But I am looking for a method to update just one record using PK value.
>>>>>>
>>>>>>TIA for any suggestions.
>>>>>
>>>>>You can call TableUpdate with the .F. parameter to only update one (current) record.
>>>>
>>>>Let me clarify something, please. Do you mean =TableUpdate(0,.F.,"CursorName") ? That is, you meant to have the 2nd parameter as .F.?
>>>
>>>Yes. The parameter that tells how many records to update.
>>
>>I thought that the first parameter (that I use as 0) is to tell how many records to update.
>
>You're right. I've checked the help online quickly. The first parameter must be 0, the second is up to you.

I can't thank you enough for this suggestion (TableUpdate). It is very simple and works.
"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
Next
Reply
Map
View

Click here to load this message in the networking platform