App Designer "Too many outputs"

5 ビュー (過去 30 日間)
Jonathan Moorman
Jonathan Moorman 2020 年 6 月 11 日
回答済み: Cris LaPierre 2020 年 6 月 11 日
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

採用された回答

Cris LaPierre
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 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by