Listbox - select row through code, not with mouse
2 次查看(过去 30 天)
显示 更早的评论
How can you define in code which element of a listbox is selected (similar to the C# .selectedIndex property)?
I populate a listbox with various elements. In a textbox, the user would specify a number. I would like the highlighted row in the listbox to reflect this value entered. So if I had a listbox with the values 1 through 10 and the user entered 4, the fourth row would be highlighted.
Thanks for any help.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!