Effacer les filtres
Effacer les filtres

Multiple selection of items in list box using guide and execution of code for the selected items

5 vues (au cours des 30 derniers jours)
Hello,
I would like to know how can we do multiple selection of folders in a listbox using guide execution of some functions for the selected folders. I knew how to select multiple folders in a list box, but I am not understanding how to use the selected folder for execution of certain function.
in guide I did max selction 10, min selection 1 and
function handles = MessageWindow(handles,Message)
msg = get(handles.MessageWindowList, 'String');
if(ischar(Message))
Message = cellstr(Message);
end
msg = [msg; Message];
set(handles.MessageWindowList, 'String', msg);
hoping for an answer.
Thanks; Meera
  1 commentaire
Adam
Adam le 2 Mar 2015
I'm not sure I understand your question, but if you have multi-selected from a listbox then the 'Value' property of the listbox will give you the indices of your multiple selections. This can be used to index into the 'String' property of the listbox to get the actual strings that were selected.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps 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