I have a problem with appdesigner, can you help me?

1 回表示 (過去 30 日間)
Tania Goddi
Tania Goddi 2023 年 4 月 7 日
コメント済み: Tania Goddi 2023 年 4 月 7 日
Hello everyone, I have inserted a checkbox in Appdesigner, how can I verify that this has been checked?
Thank you for your help.

回答 (2 件)

Image Analyst
Image Analyst 2023 年 4 月 7 日
if app.checkBox.Value
uiwait(helpdlg('The checkbox is currently checked.'))
else
uiwait(helpdlg('The checkbox is currently NOT checked.'))
end

Kevin Holly
Kevin Holly 2023 年 4 月 7 日
編集済み: Kevin Holly 2023 年 4 月 7 日
If the checkbox is checked, it would have a value of 1. Otherwise, it would have a value of 0.
The value can be found with the following command:
app.CheckBox.Value

カテゴリ

Help Center および File ExchangeSoftware Development Tools についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by