I have a problem with appdesigner, can you help me?
    3 次查看(过去 30 天)
  
       显示 更早的评论
    
Hello everyone, I have inserted a checkbox in Appdesigner, how can I verify that this has been checked?
Thank you for your help.
0 个评论
回答(2 个)
  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
    
 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 Exchange 中查找有关 Reporting and Database Access 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


