Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Only looking for a real change
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01419062
Message ID:
01419216
Vues:
51
>Hi Naomi,
>
>>Do you think it would be a good idea to overwrite somehow this method (...) and re-set the Field State?
>
>No. Resetting the field state does not affect the record state. Even if you set all fields to unchanged, GETNEXTMODIFIED() will still report the record as modified and you still have to revert changes. If the code make the decision to update or revert based on the code you want to modify, these changes might not be rolled back which could cause future REQUERY() statements to fail. Depending on the code this might happen silently, so some views merely contain old data.
>
>It's better to look for a method that checks if the user should be prompted for changes, or if such a method is lacking, change the method that prompts the user.

Christof,

The data don't really change, but the GetFldState reports a change. The form method recognizes that there was a change (based on GetFldState) and then silently saves the data (and displays the information saved) message. But I don't want to save when nothing has changed - what should I do to avoid it?

Thanks.
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