Azzera filtri
Azzera filtri

App Designer - How to change a property from outside the app

2 visualizzazioni (ultimi 30 giorni)
Hello all,
I have an app reading an excel file in the StartUp function. In order to read the file the app need a file paths which will need to be modified depending on where is placed the file.
Is there a way to modify from outside the app a property (for now i declare the path as a property) ?
Or do you know how to store it in an accessible file for the user? Or a way to ask the user without causing any perturbation to the app?
Thank you in advance
  1 Commento
Adam
Adam il 15 Nov 2019
Assuming the app is still open just access the property as normal, e.g.
myApp = App( ); % Launch the app, replacing App with your app name
myApp.someProperty = ... % Access the property and edit it

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange

Prodotti


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by