The next time on how to show in the mle plug-in off input before the words,
CodePudding user response:
If let me do what I could be the following ideasDefine a list: UID, MLETEXT, FLAG (0, 1), the TIME
A imitation of OFFICE automatic save function, MLE loads, define the FLAG is 1, the TIMER event, store MLE content on A regular basis to the table, if normally closed, modify the FLAG value is 0, emptying the contents, if abnormal shut off the power, for example, the next loads, FLAG still is 1, and the content is not empty, then ask: there are unsaved content, whether or not to load?
Click remove MLETEXT, FLAG set to 0, empty MLETEXT,
No, FLAG set to 0, MLETEXT empty (remind only once),
B ITEMCHANGE events, real-time record MLE content, loss when error is small, but the consumption of resources,
CodePudding user response:
How to determine the normal and abnormal closed closed?CodePudding user response:
The value of the FLAG initialization time, set this value to 1Normally closed, the FLAG from 1 set to 0
So you can't reset when abnormal shutdown this value, this value is still in the DB for 1
Next time to enter,
If this value is 0 exit last time properly, to modify the value is 1, and continue to
If this value is 1, can explain the last close is abnormal, the save the content of the MLE, ask whether you need to restore to the MLE,
CodePudding user response: