Borrar filtros
Borrar filtros

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

5 visualizaciones (últimos 30 días)
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 comentario
Adam
Adam el 2 de Mzo. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by