How to fix buggy greyed-out code auto-generated by App Designer?

조회 수: 10 (최근 30일)
Dennis
Dennis 2019년 12월 9일
답변: Dennis 2019년 12월 10일
I am developing an app with App Designer. I deleted a component I had in my GUI, but it was not removed from the createComponents function (which is part of the auto-generated code). Now when I run my app, it crashes with the message "unrecognized method, property or field". The only place the deleted component is still refered to is in the auto-generated code, but I cannot remove it from there because it's greyed-out. So how can I solve this problem?
  댓글 수: 2
Ankit
Ankit 2019년 12월 10일
편집: Ankit 2019년 12월 10일
Once after deleting the component I dont see it in createComponents function. Try to save it as with another name and check if this problem persists.
Just a workaround for you: trying to save as "export to *.m" in the app designer. There you can change everything in your code.
Dennis
Dennis 2019년 12월 10일
Thank you, saving under a different name solved it and the code for the deleted component disappeared.

댓글을 달려면 로그인하십시오.

채택된 답변

Dennis
Dennis 2019년 12월 10일
As pointed out by Ankit, saving the mlapp under a different name solved it and the code for the deleted component disappeared.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by