TextArea ValueChanged Function doesn't work AppDesigner
1 次查看(过去 30 天)
显示 更早的评论
Hi everyone !
I have an app that you can see above. When the user use the 'Browse' Button he can choose a .slx file and the name of the file is display in the TextArea. Depending on the chosen file the user has different choices in DropDown's.
What i'm trying to do is when the user push the Browse Button again and chose a different .slx file and so the TextArea value is changing, it reset DropDown's values. The problem is when i simulate that, even if the value of the TextArea change it never goes into the ValueChanged Function. (The TextArea's Editable property is off)
Here is my code :
function ModeleTextAreaValueChanged(app, event)
value = app.ModeleTextArea.Value;
if string(app.ModeleTextArea.Value(1)) == ''
else
app.DropDown1.Items = cell('');
app.DropDown2.Items = cell('');
app.DropDown3.Items = cell('');
app.DropDown1.Value = cell('');
app.DropDown2.Value = cell('');
app.DropDown3.Value = cell('');
end
end
Thanks for helping
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!