How to get Handle of an list's element selected in AppDesigner?

4 visualizaciones (últimos 30 días)
Wim Boer
Wim Boer el 25 de Nov. de 2017
Comentada: Matt J el 6 de Dic. de 2017
Dear Matlab community,
In GUIDE it was easy to get the string and value of a element selected in e.g. a ListBox. In AppDesigner however I am only able to get the string. I can only indirecly get the value using strcmp.
In GUIDE:
function listbox1_Callback(hObject, eventdata, handles)
index_selected = get(hObject,'Value');
How to get the value of the ListBox in AppDesigner??
Regards, Wim

Respuesta aceptada

Matt J
Matt J el 25 de Nov. de 2017
app.listbox1.Value
  4 comentarios
Matt J
Matt J el 6 de Dic. de 2017
You're welcome, but please click "Accept" if you got the info you needed.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown 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