How to save and load App Designer app state in between sessions
111 views (last 30 days)
I've seen similar questions about how to save/load variables from an app, but I couldn't find a way to save the state of my app (including all variables, all states of edittexts, etc) when the app is closed, and loading it when it's started. I tried the following code, with no luck. I thought that by just giving a name to the file it would by default save everything, but when I try to access the file just saved I get the app with the same structure as the previous, but all properties have: The variable app.something does not exist. Also, how can i clear all properties values and set everything to the state the app would be if no file was loaded?
function ElementosUIFigureCloseRequest(app, event)
Dennis on 18 Jun 2019
You should load your .mat file into a structure, and pass that structure to other functions.
You can set S to a property of your app to access it in other functions.