How to save current file loaded in app after using uigetfile?
이전 댓글 표시
I'm using app designer (R2022b) and I have a callback that allows the user to load a file. The user can click the load option at anytime to load in a new file, HOWEVER if the user decides after clicking the load option that they want to stick with the currently selected data rather than load new, if they click cancel or close the uigetfile=0 and I've set up the app to disable the other features except the Load option.
Is there a way to store the data file name such that I could create an IF statement (or similar) if they decide to keep working on the current file they don't have to reselect it, they can simply click cancel or close and resume working?
I've tried a logical, but it appears the filename is erased as soon as the callback is performed ergo I cannot use a logical to compare the old filename to the uigetfile option since the uigetfile is cleared after the callback is performed.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 App Building에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!