Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement