App Designer - How to change a property from outside the app
5 次查看(过去 30 天)
显示 更早的评论
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 个评论
Adam
2019-11-15
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
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!