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 CenterFile Exchange에서 Software Development Tools에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by