필터 지우기
필터 지우기

how to make Reset Button in app designer

조회 수: 33 (최근 30일)
Imam Pratama Setiady
Imam Pratama Setiady 2021년 2월 12일
댓글: Ruger28 2021년 2월 12일
hello everyone, i have a problem for make a reset button in app designer. for the code with .value the result can't reset but in .text the result can reset. and my question is how to code for reset .value ? thanks
  댓글 수: 1
Ruger28
Ruger28 2021년 2월 12일
What type of edit field are you using? Text or Numeric?
Text fields can be blanked with a ' ' , but numeric fields can only be a value, so setting .value to 0 is the only thing you can do.

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

답변 (1개)

Mario Malic
Mario Malic 2021년 2월 12일
Hi,
you want to set the character array to a numeric field and that doesn't work. Numeric EditField components can't have an empty value. You can either set those values in green to zero, or change the EditField component to text one and use str2num.

카테고리

Help CenterFile 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!

Translated by