필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
yvesvincent abgrall
yvesvincent abgrall 2019년 11월 15일
댓글: Adam 2019년 11월 15일
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
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 CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by