Filter löschen
Filter löschen

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

5 Ansichten (letzte 30 Tage)
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 Kommentar
Adam
Adam am 2 Mär. 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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by