Get string of button in button group before GUI open
1 次查看(过去 30 天)
显示 更早的评论
Im trying to get the string of the button in a button group before the GUI opens. Anyone know how to do this? Thanks
0 个评论
回答(1 个)
Image Analyst
2014-2-25
If using guide, delete the string in the string property edit field. If you want to do it in code, use set
set(handles.button1, 'String', '');
See if either of those work for you.
2 个评论
Image Analyst
2014-2-25
I thought it said "delete" before. Now it says "get". If you want to get the string, you should use
buttonCaption = get(handles.button1, 'string');
I think this should work for buttons in a button group as well as individual buttons.
另请参阅
类别
在 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!