Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CA RefreshCursor for one record
Message
 
 
À
21/02/2011 15:53:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01501152
Message ID:
01501162
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.
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