Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Revert/refresh single field?
Message
De
27/07/2000 13:20:21
 
 
À
27/07/2000 10:35:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00397583
Message ID:
00397717
Vues:
10
>Hi,
>
>This may be a stupid question - if so - please forgive me - but, is there a way to "TableRevert" or "Refresh()" just a single field in a table buffered SPT cursor (SQL B/E)? I know I can use oldval(), orcurval() and then do a replace, but the act of replacing still leaves the record in modified status even if I'm just replacing the field with the original value.
>
>I'm looking for a way to have a user be able to revert an individual field without changing the modification status of the row (As checked by GetFldState or GetNextModified) Even replacing with the oldval() and then using SetFldState does not reset GetNExtModified or even prevent TableUpdate from sending the update for that field to the back end.
>
>Any ideas?
>
>TIA
>Ken

In 2.x days, we used to write our own function called isupdated() that would loop round a table and compare the table values against the memory variables. This becaues the native Updated() function returned .t. when a modifcation was cancelled. You could write something similar using curval and oldval.

Mace
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform