How to find the item order number in List Box in App designer?

12 vues (au cours des 30 derniers jours)
Faez Alkadi
Faez Alkadi le 17 Sep 2019
Commenté : Seonggon Kim le 18 Fév 2023
I have a List box named "Numbers" that has the same 4 items, they all are the number 5. How can I pick the Item3 (The third in order) to change it to 3.
I used [~,idx] = ismember(app.NumbersListBox.Value,app.NumbersListBox.Items);
But I alwyas get to change the first on because the Value are the same.
How can I find inx using "Item number" instead of "Value" ?
Thank you so much
  14 commentaires
Seonggon Kim
Seonggon Kim le 18 Fév 2023
If there are items with same name, is there a way out?
I recommand to use the 'Table' instead 'List Box'.

Connectez-vous pour commenter.

Réponses (0)


En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by