コンポーネントへの処理を変数などで管理したい(webアプリ)
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
コンポーネントの編集フィールドの名前がapp.EditField_test01だった場合に
x = 'test01';
strcat('app.EditField_', x, '.Value') = 100;
のような処理を行いたいのですが、うまくいきません。
このような処理が可能であれば、複数のコンポーネントへの処理を関数化できるので
助言をお願いいたします。
0 Kommentare
Antworten (1)
Atsushi Ueno
am 24 Mai 2023
structName.(dynamicExpression)
上記の文法で動的なフィールド名の指定が可能です。
app.EditField_test01.Value = 100;
x = 'EditField_test01';
app.(x).Value % app.EditField_test01.Valueにアクセスしている
0 Kommentare
Siehe auch
Kategorien
Mehr zu App Designer を使用したアプリ開発 finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!