Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Only looking for a real change
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01419062
Message ID:
01419216
Views:
52
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform