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

1 次查看(过去 30 天)
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 个评论
Adam
Adam 2015-3-2
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by