How to save result of GUI before closing?
6 views (last 30 days)
Show older comments
Hi everyone, I want to know if there is any option that can be added to GUI so that if the user accidentally close GUI bring a message like "Do you want to close the GUI?" with Yes and No answer and if it was yes, information be saved.
0 Comments
Answers (1)
Walter Roberson
on 9 Aug 2018
See https://www.mathworks.com/help/matlab/ref/matlab.ui.figure-properties.html#buiwuyk-1-CloseRequestFcn for an example of prompting the user .
To save the information, you can save() or xlswrite() or whatever is appropriate for the way you want to store the information.
0 Comments
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!