Changing the value of a spinner from another spinner

Hello all,
I have 2 spinners in my app, spinner1 and spinner2, and I want to change the value of spinner 2 while I am changing the value of spinner1. I have tried several things without luck. The following code describes what I am trying to do.
function spinner1ValueChanging(app, event)
changingValue = event.Value;
app.spinner2ValueChanging(app, event);
end
Thanks for your help!!

2 件のコメント

jonas
jonas 2020 年 7 月 14 日
did you try..
app.spinner2.Value = changingValue
?
Luis Pantin
Luis Pantin 2020 年 7 月 14 日
Yeas I tried that and it worked. Thanks.

サインインしてコメントする。

 採用された回答

jonas
jonas 2020 年 7 月 14 日

1 投票

I'll just put it here for future reference :)
Like most other objects, the slider is adjusted by changing the value field
app.spinner2.Value = changingValue

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

質問済み:

2020 年 7 月 14 日

回答済み:

2020 年 7 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by