Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CA RefreshCursor for one record
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01501152
Message ID:
01501163
Vues:
39
>>>>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform