-
Notifications
You must be signed in to change notification settings - Fork 0
105 Force Modified
You may wonder what this does, eh? It appears nothing happens, heck it even disables when you modify a record, or when you hit it. If you've ever seen the BlitzMax version of MyData, you may have seen the button is not even present.
In the BlitzMax version MyData generated all data anyway, and especially in rec-by-rec-exports the dates and times in the generated files changed all the time, causing me needlessly long commits on github, and also dates and times that were not really correct either. That is why I decided when I took on the challenge to make MyData work in Mono, to only export those records that were actually modified since the last export, or if the file that would be created by exporting is either missing or modified.
However one can never fully guarantee the writing of files goes 100% correctly, so exported files may get corrupted just as they are written leading to false data, and more issues. Although when the system appears to be unable to properly detect things are wrong, and need to be regenerated, you can get stuck with wrong data, and you may need drastic measures to get the new data to be properly generated.
I do not want that, and neither do you, well?
So that is why I added this button. All it does is mark a record as being modified causing MyData to always export that record, when saving and exporting.
Under normal circumstances, you should never truly need this button, but if you do it's present now.
And all in all this feature was pretty easy to implement, just assign "true" to a certain boolean variable, and well, that's all :P
It's just a "first aid in emergency" feature, that can save you a lot of work, and well, that's all it is :P