TextArea ValueChanged Function doesn't work AppDesigner

4 views (last 30 days)
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)) == ''
app.DropDown1.Items = cell('');
app.DropDown2.Items = cell('');
app.DropDown3.Items = cell('');
app.DropDown1.Value = cell('');
app.DropDown2.Value = cell('');
app.DropDown3.Value = cell('');
Thanks for helping

Answers (0)


Find more on Migrate GUIDE Apps 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!