Why is the label not coming up?
3 ビュー (過去 30 日間)
古いコメントを表示
Hi
in app3 , the label is supposed to show 'choose two or three salts¨ when the user has not chosen any salts. But the label is not showing up when the user hasnt chosen anything. I put a condition of isempty for listbox value but it seems it is not working. And the while loop there is not working either. The code is supposed to show the picture of listbox with the the instruction in the label of choosing two to three salts , as many time as the nr of the variable called antall_soner from app2.
I am attaching app2 also which is the main app
0 件のコメント
回答 (1 件)
Kevin Holly
2023 年 6 月 7 日
I made the default text for Label2, "Choose the salts available!". This way it appears when the app first starts. If you do not want it present during initialization, you can delete this.
If the user deselects everything in the listbox using "Ctrl+click", app.numSelected would be zero, but not empty. Therefore, I added this to your if condition:
|| app.numSelected==0
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!