App Designer "Too many outputs"
8 views (last 30 days)
Show older comments
Jonathan Moorman on 11 Jun 2020
Answered: Cris LaPierre on 11 Jun 2020
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;
app.DiameterofHoleEditField.Editable = 'off';
app.DiameterofHoleEditField.Editable = 'on';
Cris LaPierre on 11 Jun 2020
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;
More Answers (0)
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!