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

2 visualizaciones (últimos 30 días)
yvesvincent abgrall
yvesvincent abgrall el 15 de Nov. de 2019
Comentada: Adam el 15 de Nov. de 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 comentario
Adam
Adam el 15 de Nov. de 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

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by