フィルターのクリア

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 Center および File ExchangeDevelop 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