Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
yvesvincent abgrall
yvesvincent abgrall am 15 Nov. 2019
Kommentiert: Adam am 15 Nov. 2019
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 Kommentar
Adam
Adam am 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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by