App Designer "Too many outputs"
조회 수: 4 (최근 30일)
이전 댓글 표시
I'm trying to use a check box to either have edit field editable or noneditable. I keep getting the errors "Too many output arguments." and "Error in Phase1App/ColdWorkedHoleCheckBoxValueChanged (line 63). value = app.ColdWorkedHoleCheckBoxValueChanged.Value; "
Heres my code:
function ColdWorkedHoleCheckBoxValueChanged(app, event)
value = app.ColdWorkedHoleCheckBoxValueChanged.value;
switch value
case 0
app.DiameterofHoleEditField.Editable = 'off';
case 1
app.DiameterofHoleEditField.Editable = 'on';
end
댓글 수: 0
채택된 답변
Cris LaPierre
2020년 6월 11일
The line of code you think is getting the value of the check box is actually calling the callback function. Try using the following code instead.
value = app.ColdWorkedHoleCheckBox.Value;
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File 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!